114 references to Create
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
CodeActions\PreviewTests.cs (1)
81
solution = solution.AddProject(ProjectInfo.
Create
(s_addedProjectId, VersionStamp.Create(), AddedProjectName, AddedProjectName, LanguageNames.CSharp));
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (1)
40
.AddProject(ProjectInfo.
Create
(projectId, VersionStamp.Create(), "proj1", "proj1.dll", LanguageNames.CSharp, filePath: "/a/b/proj1.csproj"))
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (2)
44
AddProject(ProjectInfo.
Create
(projectId, VersionStamp.Create(), "proj", "proj", LanguageNames.CSharp)).GetProject(projectId).
463
AddProject(ProjectInfo.
Create
(projectId, VersionStamp.Create(), "proj", "proj", LanguageNames.CSharp)).GetProject(projectId).
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
Rename\RenamerTests.cs (3)
44
var projectInfo = ProjectInfo.
Create
(projectId, VersionStamp.Create(), "ProjectName", "AssemblyName", LanguageName, filePath: "");
179
var projectInfo = ProjectInfo.
Create
(projectId, VersionStamp.Create(), "ProjectName", "AssemblyName", LanguageName, filePath: "");
218
var projectInfo = ProjectInfo.
Create
(projectId, VersionStamp.Create(), "ProjectName", "AssemblyName", LanguageName, filePath: "");
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (4)
157
ProjectInfo.
Create
(
258
ProjectInfo.
Create
(
424
var projectInfo = ProjectInfo.
Create
(ProjectId.CreateNewId(), VersionStamp.Create(), "CSharpProject", "CSharpProject", LanguageNames.CSharp);
884
ProjectInfo.
Create
(
Microsoft.CodeAnalysis.Features.UnitTests (2)
EditAndContinue\CompileTimeSolutionProviderTests.cs (2)
42
AddProject(ProjectInfo.
Create
(projectId, VersionStamp.Default, "proj", "proj", LanguageNames.CSharp, filePath: projectFilePath)).
112
.AddProject(ProjectInfo.
Create
(projectId, VersionStamp.Default, "proj", "proj", LanguageNames.CSharp))
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (1)
EditAndContinue\VisualBasicEditAndContinueAnalyzerTests.vb (1)
29
AddProject(ProjectInfo.
Create
(pid, VersionStamp.Create(), "proj", "proj", LanguageNames.VisualBasic)).GetProject(pid).
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
CodeGeneration\AddImportsTests.vb (1)
33
ProjectInfo.
Create
(
Microsoft.CodeAnalysis.Workspaces (3)
Workspace\AdhocWorkspace.cs (1)
65
var info = ProjectInfo.
Create
(ProjectId.CreateNewId(), VersionStamp.Create(), name, name, language);
Workspace\Solution\ProjectInfo.cs (1)
202
return
Create
(
Workspace\Solution\Solution.cs (1)
357
=> this.AddProject(ProjectInfo.
Create
(projectId, VersionStamp.Create(), name, assemblyName, language));
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
SolutionUtilities.cs (1)
109
ProjectInfo.
Create
(
Microsoft.CodeAnalysis.Workspaces.UnitTests (66)
FindReferencesTests.cs (1)
32
var pi = ProjectInfo.
Create
(
LinkedFileDiffMerging\LinkedFileDiffMergingTests.cs (1)
30
var projectInfo = ProjectInfo.
Create
(projectId, VersionStamp.Create(), "ProjectName" + i, "AssemblyName" + i, languageName);
SolutionTests\ProjectDependencyGraphTests.cs (1)
713
return solution.AddProject(ProjectInfo.
Create
(projectId, VersionStamp.Create(), projectName, projectName, LanguageNames.CSharp, projectName));
SolutionTests\ProjectInfoTests.cs (12)
25
Assert.Throws<ArgumentNullException>(() => ProjectInfo.
Create
(id: null, version: VersionStamp.Default, name: "Goo", assemblyName: "Bar", language: "C#"));
26
Assert.Throws<ArgumentNullException>(() => ProjectInfo.
Create
(pid, VersionStamp.Default, name: null, assemblyName: "Bar", language: "C#"));
27
Assert.Throws<ArgumentNullException>(() => ProjectInfo.
Create
(pid, VersionStamp.Default, name: "Goo", assemblyName: null, language: "C#"));
28
Assert.Throws<ArgumentNullException>(() => ProjectInfo.
Create
(pid, VersionStamp.Default, name: "Goo", assemblyName: "Bar", language: null));
80
var info2 = ProjectInfo.
Create
(ProjectId.CreateNewId(), version, "proj", "assembly", "C#");
99
var info2 = ProjectInfo.
Create
(ProjectId.CreateNewId(), version, "proj", "assembly", "C#");
118
var info2 = ProjectInfo.
Create
(ProjectId.CreateNewId(), version, "proj", "assembly", "C#");
137
var info2 = ProjectInfo.
Create
(ProjectId.CreateNewId(), version, "proj", "assembly", "C#");
156
var info2 = ProjectInfo.
Create
(ProjectId.CreateNewId(), version, "proj", "assembly", "C#");
169
var projectInfo = ProjectInfo.
Create
(name: "Goo", filePath: @"C:\", id: ProjectId.CreateNewId(), version: VersionStamp.Default, assemblyName: "Bar", language: "C#");
176
var projectInfo = ProjectInfo.
Create
(name: "Goo", id: ProjectId.CreateNewId(), version: VersionStamp.Default, assemblyName: "Bar", language: "C#");
185
var instance = ProjectInfo.
Create
(name: "Name", id: ProjectId.CreateNewId(), version: VersionStamp.Default, assemblyName: "AssemblyName", language: "C#");
SolutionTests\SolutionInfoTests.cs (2)
21
var projectInfo = ProjectInfo.
Create
(ProjectId.CreateNewId(), version, "proj", "assembly", "C#");
32
var projectInfo = ProjectInfo.
Create
(ProjectId.CreateNewId(), version, "proj", "assembly", "C#");
SolutionTests\SolutionTests.cs (34)
59
.AddProject(ProjectInfo.
Create
(projectId, VersionStamp.Default, "proj1", "proj1", LanguageNames.CSharp, Path.Combine(s_projectDir, "proj1.dll")))
1091
.AddProject(ProjectInfo.
Create
(projectId, VersionStamp.Default, "proj1", "proj1", LanguageNames.CSharp, Path.Combine(s_projectDir, "proj1.dll")))
1092
.AddProject(ProjectInfo.
Create
(projectId2, VersionStamp.Default, "proj2", "proj2", LanguageNames.CSharp, Path.Combine(s_projectDir, "proj2.dll")))
1300
.AddProject(ProjectInfo.
Create
(projectId, VersionStamp.Default, "proj1", "proj1", LanguageNames.CSharp, Path.Combine(s_projectDir, "proj1.dll")));
1335
.AddProject(ProjectInfo.
Create
(projectId, VersionStamp.Default, "proj1", "proj1", LanguageNames.CSharp, Path.Combine(s_projectDir, "proj1.dll")));
1370
.AddProject(ProjectInfo.
Create
(projectId, VersionStamp.Default, "proj1", "proj1", LanguageNames.CSharp, Path.Combine(s_projectDir, "proj1.dll")));
1405
.AddProject(ProjectInfo.
Create
(projectId, VersionStamp.Default, "proj1", "proj1", LanguageNames.CSharp, Path.Combine(s_projectDir, "proj1.dll")));
2048
.AddProject(ProjectInfo.
Create
(submissionId1, VersionStamp.Default, name: "submission1", assemblyName: "submission1.dll", LanguageNames.CSharp, isSubmission: true))
2049
.AddProject(ProjectInfo.
Create
(submissionId2, VersionStamp.Default, name: "submission2", assemblyName: "submission2.dll", LanguageNames.CSharp, isSubmission: true))
2050
.AddProject(ProjectInfo.
Create
(submissionId3, VersionStamp.Default, name: "submission3", assemblyName: "submission3.dll", LanguageNames.CSharp, isSubmission: true))
4942
ProjectInfo.
Create
(projectId, VersionStamp.Default, "Test", "Test", LanguageNames.CSharp)
4964
projects.Add(ProjectInfo.
Create
(projectId1, VersionStamp.Default, "Test1", "Test1", LanguageNames.CSharp));
4965
projects.Add(ProjectInfo.
Create
(projectId2, VersionStamp.Default, "Test2", "Test2", LanguageNames.CSharp));
4989
projects.Add(ProjectInfo.
Create
(projectId2, VersionStamp.Default, "Test2", "Test2", LanguageNames.CSharp));
5016
projects.Add(ProjectInfo.
Create
(projectId1, VersionStamp.Default, "Test1", "Test1", LanguageNames.CSharp));
5042
solution = solution.AddProject(ProjectInfo.
Create
(projectId1, VersionStamp.Default, "Test1", "Test1", LanguageNames.CSharp));
5047
projects.Add(ProjectInfo.
Create
(projectId2, VersionStamp.Default, "Test2", "Test2", LanguageNames.CSharp));
5048
projects.Add(ProjectInfo.
Create
(projectId3, VersionStamp.Default, "Test3", "Test3", LanguageNames.CSharp));
5078
projects.Add(ProjectInfo.
Create
(projectId2, VersionStamp.Default, "Test2", "Test2", LanguageNames.CSharp));
5079
projects.Add(ProjectInfo.
Create
(projectId3, VersionStamp.Default, "Test3", "Test3", LanguageNames.CSharp));
5110
projects.Add(ProjectInfo.
Create
(projectId2, VersionStamp.Default, "Test2", "Test2", LanguageNames.CSharp));
5111
projects.Add(ProjectInfo.
Create
(projectId3, VersionStamp.Default, "Test3", "Test3", LanguageNames.CSharp));
5141
projects.Add(ProjectInfo.
Create
(projectId1, VersionStamp.Default, "Test2", "Test2", LanguageNames.CSharp));
5142
projects.Add(ProjectInfo.
Create
(projectId1, VersionStamp.Default, "Test3", "Test3", LanguageNames.CSharp));
5162
projects.Add(ProjectInfo.
Create
(projectId2, VersionStamp.Default, "Test2", "Test2", LanguageNames.CSharp));
5163
projects.Add(ProjectInfo.
Create
(projectId3, VersionStamp.Default, "Test3", "Test3", LanguageNames.CSharp));
5206
projects.Add(ProjectInfo.
Create
(projectId1, VersionStamp.Default, "Test1", "Test1", LanguageNames.CSharp));
5207
projects.Add(ProjectInfo.
Create
(projectId2, VersionStamp.Default, "Test2", "Test2", LanguageNames.CSharp));
5208
projects.Add(ProjectInfo.
Create
(projectId3, VersionStamp.Default, "Test3", "Test3", LanguageNames.CSharp));
5249
projects.Add(ProjectInfo.
Create
(projectId1, VersionStamp.Default, "Test2", "Test2", LanguageNames.CSharp));
5250
projects.Add(ProjectInfo.
Create
(projectId2, VersionStamp.Default, "Test3", "Test3", LanguageNames.CSharp));
5272
ProjectInfo.
Create
(csProjectId, VersionStamp.Default, "CS1", "CS1", LanguageNames.CSharp),
5273
ProjectInfo.
Create
(vbProjectId, VersionStamp.Default, "VB1", "VB1", LanguageNames.VisualBasic)
5505
var projectInfo = ProjectInfo.
Create
(
SolutionTests\TryApplyChangesTests.cs (1)
39
OnProjectAdded(ProjectInfo.
Create
(ProjectId.CreateNewId(), VersionStamp.Default, "TestProject", "TestProject", LanguageNames.CSharp));
WorkspaceTests\AdhocWorkspaceTests.cs (5)
28
var info = ProjectInfo.
Create
(
83
var pinfo = ProjectInfo.
Create
(
110
var info1 = ProjectInfo.
Create
(
188
var info = ProjectInfo.
Create
(
289
var projInfo = ProjectInfo.
Create
(
WorkspaceTests\WorkspaceReferenceTests.cs (8)
21
var projectInfo = ProjectInfo.
Create
(
50
var referenceInfo = ProjectInfo.
Create
(
60
var projectInfo = ProjectInfo.
Create
(
90
var referenceInfo = ProjectInfo.
Create
(
100
var projectInfo = ProjectInfo.
Create
(
130
var referenceInfo = ProjectInfo.
Create
(
140
var projectInfo = ProjectInfo.
Create
(
174
var projectInfo = ProjectInfo.
Create
(
WorkspaceTests\WorkspaceTests.cs (1)
129
var info = ProjectInfo.
Create
(ProjectId.CreateNewId(), VersionStamp.Create(), name, name, language);
Microsoft.VisualStudio.LanguageServices (1)
ExternalAccess\VSTypeScript\Api\VSTypeScriptContainedLanguageWrapper.cs (1)
74
workspace.OnProjectAdded(ProjectInfo.
Create
(projectId, VersionStamp.Default, filePath, string.Empty, InternalLanguageNames.TypeScript));
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
EditorConfigSettings\DataProvider\DataProviderTests.cs (1)
30
.AddProject(ProjectInfo.
Create
(projectId, VersionStamp.Create(), "proj1", "proj1.dll", LanguageNames.CSharp, filePath: projectFilePath))
PersistentStorage\AbstractPersistentStorageTests.cs (1)
988
solution = solution.AddProject(ProjectInfo.
Create
(ProjectId.CreateNewId(), VersionStamp.Create(), "Project1", "Project1", LanguageNames.CSharp,
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\Razor\CSharpLspRazorProjectFactory.cs (1)
26
var projectInfo = ProjectInfo.
Create
(ProjectId.CreateNewId(projectName), VersionStamp.Default, projectName, projectName, LanguageNames.CSharp);
Roslyn.VisualStudio.Next.UnitTests (25)
Services\ServiceHubServicesTests.cs (23)
430
.AddProject(ProjectInfo.
Create
(projectId, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.CSharp))
769
.AddProject(ProjectInfo.
Create
(projectId, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.CSharp))
911
.AddProject(ProjectInfo.
Create
(projectId1, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.CSharp))
920
.AddProject(ProjectInfo.
Create
(projectId2, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.CSharp))
962
.AddProject(ProjectInfo.
Create
(projectId1, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.CSharp))
971
.AddProject(ProjectInfo.
Create
(projectId2, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.CSharp))
1003
.AddProject(ProjectInfo.
Create
(projectId1, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.CSharp))
1012
.AddProject(ProjectInfo.
Create
(projectId2, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.CSharp))
1046
.AddProject(ProjectInfo.
Create
(projectId1, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.CSharp))
1055
.AddProject(ProjectInfo.
Create
(projectId2, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.CSharp))
1098
.AddProject(ProjectInfo.
Create
(projectId1, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.CSharp))
1107
.AddProject(ProjectInfo.
Create
(projectId2, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.CSharp))
1151
.AddProject(ProjectInfo.
Create
(projectId1, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.CSharp))
1160
.AddProject(ProjectInfo.
Create
(projectId2, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.CSharp))
1204
.AddProject(ProjectInfo.
Create
(projectId1, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.CSharp))
1213
.AddProject(ProjectInfo.
Create
(projectId2, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.CSharp))
1249
.AddProject(ProjectInfo.
Create
(projectId1, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.CSharp))
1258
.AddProject(ProjectInfo.
Create
(projectId2, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.CSharp))
1294
.AddProject(ProjectInfo.
Create
(projectId1, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.CSharp))
1303
.AddProject(ProjectInfo.
Create
(projectId2, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.CSharp))
1337
.AddProject(ProjectInfo.
Create
(projectId1, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.CSharp))
1346
.AddProject(ProjectInfo.
Create
(projectId2, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.CSharp))
1543
.AddProject(ProjectInfo.
Create
(projectId1, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.CSharp))
Services\SolutionServiceTests.cs (2)
87
ProjectInfo.
Create
(
116
ProjectInfo.
Create
(