134 references to Create
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (5)
Microsoft.CodeAnalysis.EditorFeatures (1)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (11)
Rename\RenamerTests.cs (4)
44var projectInfo = ProjectInfo.Create(projectId, VersionStamp.Create(), "ProjectName", "AssemblyName", LanguageName, filePath: "");
179var projectInfo = ProjectInfo.Create(projectId, VersionStamp.Create(), "ProjectName", "AssemblyName", LanguageName, filePath: "");
218var projectInfo = ProjectInfo.Create(projectId, VersionStamp.Create(), "ProjectName", "AssemblyName", LanguageName, filePath: "");
229loader: TextLoader.From(TextAndVersion.Create(startSourceText, VersionStamp.Create(), documentName)),
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (32)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (11)
180VersionStamp.Create(),
294VersionStamp.Create(),
355VersionStamp.Create(),
365loader: TextLoader.From(TextAndVersion.Create(SourceText.From(""), VersionStamp.Create(), filePath)),
436VersionStamp.Create(),
480VersionStamp.Create(),
488loader: TextLoader.From(TextAndVersion.Create(SourceText.From("class A {}"), VersionStamp.Create(), filePath: "test.cs")),
577VersionStamp.Create(),
586loader: TextLoader.From(TextAndVersion.Create(SourceText.From("class A {}"), VersionStamp.Create(), filePath: "test.cs")),
632var projectInfo = ProjectInfo.Create(ProjectId.CreateNewId(), VersionStamp.Create(), "CSharpProject", "CSharpProject", LanguageNames.CSharp);
1194VersionStamp.Create(),
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (5)
125AddProject(ProjectInfo.Create(projectId, VersionStamp.Create(), "proj", "proj", LanguageNames.CSharp, parseOptions: CSharpParseOptions.Default.WithNoRefSafetyRulesAttribute()).WithTelemetryId(s_defaultProjectTelemetryId)).GetProject(projectId).
401loader: TextLoader.From(TextAndVersion.Create(sourceText, VersionStamp.Create(), path)),
756loader: TextLoader.From(TextAndVersion.Create(sourceText, VersionStamp.Create(), "design-time-only.cs")),
3718loader: TextLoader.From(TextAndVersion.Create(sourceText, VersionStamp.Create(), filePath)),
4558AddProject(ProjectInfo.Create(projectId, VersionStamp.Create(), "P", "P", LanguageNames.CSharp, parseOptions: CSharpParseOptions.Default.WithNoRefSafetyRulesAttribute())).GetProject(projectId).
SolutionCrawler\WorkCoordinatorTests.cs (16)
95var solutionInfo = SolutionInfo.Create(SolutionId.CreateNewId(), VersionStamp.Create(),
98ProjectInfo.Create(projectId, VersionStamp.Create(), "P1", "P1", LanguageNames.CSharp,
220projectId, VersionStamp.Create(), "P3", "P3", LanguageNames.CSharp,
1435var solution = SolutionInfo.Create(SolutionId.CreateNewId(), VersionStamp.Create(),
1438ProjectInfo.Create(projectId1, VersionStamp.Create(), "P1", "P1", LanguageNames.CSharp,
1440ProjectInfo.Create(projectId2, VersionStamp.Create(), "P2", "P2", LanguageNames.CSharp,
1442ProjectInfo.Create(projectId3, VersionStamp.Create(), "P3", "P3", LanguageNames.CSharp,
1621var solution = SolutionInfo.Create(SolutionId.CreateNewId(), VersionStamp.Create(),
1624ProjectInfo.Create(projectId1, VersionStamp.Create(), "P1", "P1", LanguageNames.CSharp,
1626ProjectInfo.Create(projectId2, VersionStamp.Create(), "P2", "P2", LanguageNames.CSharp,
1629ProjectInfo.Create(projectId3, VersionStamp.Create(), "P3", "P3", LanguageNames.CSharp,
1632ProjectInfo.Create(projectId4, VersionStamp.Create(), "P4", "P4", LanguageNames.CSharp,
1634ProjectInfo.Create(projectId5, VersionStamp.Create(), "P5", "P5", LanguageNames.CSharp,
1647return SolutionInfo.Create(SolutionId.CreateNewId(), VersionStamp.Create(),
1650ProjectInfo.Create(projectId1, VersionStamp.Create(), "P1", "P1", LanguageNames.CSharp,
1652ProjectInfo.Create(projectId2, VersionStamp.Create(), "P2", "P2", LanguageNames.CSharp,
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Microsoft.CodeAnalysis.Remote.Workspaces (1)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.Workspaces (23)
Workspace\Workspace.cs (8)
85var info = SolutionInfo.Create(SolutionId.CreateNewId(), VersionStamp.Create());
129=> CreateSolution(SolutionInfo.Create(id, VersionStamp.Create()));
1758project.State.Attributes.With(version: VersionStamp.Create()),
1771=> CreateDocumentInfoWithoutText(doc).WithTextLoader(TextLoader.From(TextAndVersion.Create(doc.GetTextSynchronously(CancellationToken.None), VersionStamp.Create(), doc.FilePath)));
1938this.OnDocumentAdded(info.WithTextLoader(TextLoader.From(TextAndVersion.Create(text, VersionStamp.Create()))));
1982this.OnAdditionalDocumentAdded(info.WithTextLoader(TextLoader.From(TextAndVersion.Create(text, VersionStamp.Create()))));
2015this.OnAnalyzerConfigDocumentAdded(info.WithTextLoader(TextLoader.From(TextAndVersion.Create(text, VersionStamp.Create()))));
2037this.OnAnalyzerConfigDocumentTextLoaderChanged(id, TextLoader.From(TextAndVersion.Create(text, VersionStamp.Create())));
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (39)
SolutionTests\ProjectDependencyGraphTests.cs (2)
248var projectAInfo = ProjectInfo.Create(projectAId, VersionStamp.Create(), "A", "A", LanguageNames.CSharp,
716return solution.AddProject(ProjectInfo.Create(projectId, VersionStamp.Create(), projectName, projectName, LanguageNames.CSharp, projectName));
SolutionTests\SolutionTests.cs (18)
428var textAndVersion = TextAndVersion.Create(text, VersionStamp.Create());
516var textAndVersion = TextAndVersion.Create(text, VersionStamp.Create());
599var textAndVersion = TextAndVersion.Create(text, VersionStamp.Create());
682var textAndVersion = TextAndVersion.Create(text, VersionStamp.Create());
758var textAndVersion = TextAndVersion.Create(text, VersionStamp.Create());
3380VersionStamp.Create(),
3388VersionStamp.Create(),
3408VersionStamp.Create(),
3418VersionStamp.Create(),
3553VersionStamp.Create(),
3562VersionStamp.Create(),
4196VersionStamp.Create(),
4205VersionStamp.Create(),
4214VersionStamp.Create(),
4224VersionStamp.Create(),
4234VersionStamp.Create(),
4244VersionStamp.Create(),
4293var version = VersionStamp.Create();
Microsoft.VisualStudio.LanguageServices (1)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (3)
Microsoft.VisualStudio.LanguageServices.LiveShare (3)
Roslyn.VisualStudio.Next.UnitTests (9)
Services\ServiceHubServicesTests.cs (3)
304SolutionId.CreateNewId(), VersionStamp.Create(), "",
308p1, VersionStamp.Create(), "p1", "p1", LanguageNames.CSharp, outputFilePath: file.Path,
311p2, VersionStamp.Create(), "p2", "p2", LanguageNames.CSharp,
Services\SolutionServiceTests.cs (5)
84ProjectId.CreateNewId(), VersionStamp.Create(), "test", "test.dll", LanguageNames.CSharp,
113ProjectId.CreateNewId(), VersionStamp.Create(), "test", "test.dll", LanguageNames.CSharp,
247loader: TextLoader.From(TextAndVersion.Create(SourceText.From("test"), VersionStamp.Create())));
279loader: TextLoader.From(TextAndVersion.Create(SourceText.From("root = true"), VersionStamp.Create(), filePath: configPath)),
311loader: TextLoader.From(TextAndVersion.Create(SourceText.From("class A { }"), VersionStamp.Create())));