119 references to Create
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (31)
SolutionCrawler\WorkCoordinatorTests.cs (14)
101DocumentInfo.Create(DocumentId.CreateNewId(projectId), "D1")
223DocumentInfo.Create(DocumentId.CreateNewId(projectId), "D1"),
224DocumentInfo.Create(DocumentId.CreateNewId(projectId), "D2")
565var info = DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "D6");
736var ncfile = DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "D6");
779var analyzerConfigFile = DocumentInfo.Create(DocumentId.CreateNewId(project.Id), ".editorconfig", filePath: analyzerConfigDocFilePath);
1303var info = DocumentInfo.Create(DocumentId.CreateNewId(id), "D6");
1418workspace.OnDocumentAdded(DocumentInfo.Create(DocumentId.CreateNewId(solution.Projects[0].Id), "D6"));
1625documents: new[] { DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "D1") }),
1627documents: new[] { DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "D2") },
1630documents: new[] { DocumentInfo.Create(DocumentId.CreateNewId(projectId3), "D3") },
1633documents: new[] { DocumentInfo.Create(DocumentId.CreateNewId(projectId4), "D4") }),
1635documents: new[] { DocumentInfo.Create(DocumentId.CreateNewId(projectId5), "D5") },
1661yield return DocumentInfo.Create(DocumentId.CreateNewId(projectId), $"D{i + 1}");
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
Microsoft.CodeAnalysis.Features (7)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator (1)
Microsoft.CodeAnalysis.Workspaces (10)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (50)
SolutionTests\DocumentInfoTests.cs (11)
26Assert.Throws<ArgumentNullException>(() => DocumentInfo.Create(id: null, "doc"));
27Assert.Throws<ArgumentNullException>(() => DocumentInfo.Create(documentId, name: null));
29Assert.Throws<ArgumentNullException>(() => DocumentInfo.Create(documentId, "doc", folders: new[] { "folder", null }));
38var info = DocumentInfo.Create(
57var info = DocumentInfo.Create(
76var info1 = DocumentInfo.Create(documentId, "doc", folders: new[] { "folder" });
79var info2 = DocumentInfo.Create(documentId, "doc");
82var info3 = DocumentInfo.Create(documentId, "doc", folders: new string[0]);
85var info4 = DocumentInfo.Create(documentId, "doc", folders: ImmutableArray<string>.Empty);
98var info = DocumentInfo.Create(DocumentId.CreateNewId(ProjectId.CreateNewId()), "doc_name", filePath: path, sourceCodeKind: kind);
108var instance = DocumentInfo.Create(DocumentId.CreateNewId(ProjectId.CreateNewId()), "doc");
SolutionTests\SolutionTests.cs (22)
1120solution = solution.AddDocument(DocumentInfo.Create(documentAId, "a.cs", loader: textLoaderA, filePath: "a.cs"));
1123solution = solution.AddDocument(DocumentInfo.Create(fileDocumentId, "d.cs", loader: new FileTextLoader(fileD.Path, defaultEncoding: null), filePath: fileD.Path));
1964var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file1.cs");
1965var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file2.cs");
1988var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs");
1989var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs");
2015var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs");
2016var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs");
2040var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file1.cs");
2041var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file2.cs");
2061var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs");
2062var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs");
2083var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs");
2102var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.txt");
2121var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), ".editorconfig");
3931DocumentInfo.Create(
3965DocumentInfo.Create(
4007DocumentInfo.Create(
4055DocumentInfo.Create(
4101DocumentInfo.Create(
4172.WithAnalyzerConfigDocuments(new[] { DocumentInfo.Create(editorConfigDocumentId, ".editorconfig", filePath: editorConfigFilePath) });
4294var docInfo = DocumentInfo.Create(DocumentId.CreateNewId(pid), "c.cs", loader: TextLoader.From(TextAndVersion.Create(text, version)));
WorkspaceTests\AdhocWorkspaceTests.cs (6)
62var info = DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "code.cs");
155var docInfo = DocumentInfo.Create(
218var docInfo = DocumentInfo.Create(DocumentId.CreateNewId(pid), "c.cs", loader: TextLoader.From(TextAndVersion.Create(text, version)));
252var docInfo = DocumentInfo.Create(DocumentId.CreateNewId(pid), "c.cs", loader: TextLoader.From(TextAndVersion.Create(text, version)));
287var docInfo = DocumentInfo.Create(
346var docInfo = DocumentInfo.Create(DocumentId.CreateNewId(pid), "c.cs", loader: TextLoader.From(TextAndVersion.Create(text, version)));
Microsoft.VisualStudio.LanguageServices (2)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
Microsoft.VisualStudio.LanguageServices.LiveShare (2)
Microsoft.VisualStudio.LanguageServices.UnitTests (2)
Roslyn.VisualStudio.Next.UnitTests (4)