52 references to GetProjectsByName
Microsoft.CodeAnalysis.Features.UnitTests (1)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (1)
1556
var projectC = solution.
GetProjectsByName
("C").Single();
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (21)
MSBuildWorkspaceTestBase.cs (2)
79
var project = sol.
GetProjectsByName
("VisualBasicProject").FirstOrDefault();
88
var project = sol.
GetProjectsByName
("VisualBasicProject").FirstOrDefault();
VisualStudioMSBuildWorkspaceTests.cs (19)
372
var project2 = solution.
GetProjectsByName
("Project2").First();
1836
var project = solution.
GetProjectsByName
("VisualBasicProject").FirstOrDefault();
1862
var project = solution.
GetProjectsByName
("VisualBasicProject").FirstOrDefault();
1896
var project = sol.
GetProjectsByName
("VisualBasicProject").FirstOrDefault();
1919
var project = sol.
GetProjectsByName
("VisualBasicProject").FirstOrDefault();
1943
var project = sol.
GetProjectsByName
("CSharpProject").FirstOrDefault();
1966
var project = sol.
GetProjectsByName
("CSharpProject").FirstOrDefault();
1991
var project = solution.
GetProjectsByName
("CSharpProject").FirstOrDefault();
2012
var project = solution.
GetProjectsByName
("CSharpProject").FirstOrDefault();
2019
var project2 = solution2.
GetProjectsByName
("CSharpProject").FirstOrDefault();
2038
var projectB = workspaceB.CurrentSolution.
GetProjectsByName
("CSharpProject").FirstOrDefault();
2053
var project = solution.
GetProjectsByName
("CSharpProject").FirstOrDefault();
2062
var project2 = solution2.
GetProjectsByName
("CSharpProject").FirstOrDefault();
2087
var project = solution.
GetProjectsByName
("CSharpProject").FirstOrDefault();
2095
var project2 = solution2.
GetProjectsByName
("CSharpProject").FirstOrDefault();
2114
var documents = solution.
GetProjectsByName
("CSharpProject").FirstOrDefault().Documents.ToList();
2141
var documents = solution.
GetProjectsByName
("CSharpProject").FirstOrDefault().AdditionalDocuments.ToList();
2168
var project = solution.
GetProjectsByName
("CSharpProject").FirstOrDefault();
2473
Assert.NotNull(project.Solution.
GetProjectsByName
("CSharpProject").SingleOrDefault());
Microsoft.CodeAnalysis.Workspaces.UnitTests (30)
SolutionTests\ProjectDependencyGraphTests.cs (28)
216
solution = solution.WithProjectReferences(solution.
GetProjectsByName
("C").Single().Id, []);
226
var projectAId = solution.
GetProjectsByName
("A").Single().Id;
227
var projectBId = solution.
GetProjectsByName
("B").Single().Id;
280
var projectId = solution.
GetProjectsByName
(project).Single().Id;
297
var projectId = solution.
GetProjectsByName
(project).Single().Id;
315
solution = solution.WithProjectReferences(solution.
GetProjectsByName
("A").Single().Id,
395
solution = solution.WithProjectReferences(solution.
GetProjectsByName
("C").Single().Id, []);
415
solution = solution.RemoveProject(solution.
GetProjectsByName
("B").Single().Id);
437
solution = solution.RemoveProject(solution.
GetProjectsByName
("B").Single().Id);
459
solution = solution.RemoveProject(solution.
GetProjectsByName
("B").Single().Id);
481
solution = solution.RemoveProject(solution.
GetProjectsByName
("B").Single().Id);
503
var a = solution.
GetProjectsByName
("A").Single();
504
var b = solution.
GetProjectsByName
("B").Single();
505
var d = solution.
GetProjectsByName
("D").Single();
531
var a = solution.
GetProjectsByName
("A").Single();
532
var b = solution.
GetProjectsByName
("B").Single();
533
var e = solution.
GetProjectsByName
("E").Single();
560
var a = solution.
GetProjectsByName
("A").Single();
561
var b = solution.
GetProjectsByName
("B").Single();
562
var c = solution.
GetProjectsByName
("C").Single();
613
var b = solution.
GetProjectsByName
("B").Single();
614
var c = solution.
GetProjectsByName
("C").Single();
619
b = solution.
GetProjectsByName
("B").Single();
648
var projectId = solution.
GetProjectsByName
(project).Single().Id;
660
var projectId = solution.
GetProjectsByName
(project).Single().Id;
724
references.Add(new ProjectReference(solution.
GetProjectsByName
(targetProject).Single().Id));
728
references.Add(new ProjectReference(solution.
GetProjectsByName
(targetProject).Single().Id, [$"alias{references.Count}"]));
733
solution.
GetProjectsByName
(projectName).Single().Id,
SolutionTests\SolutionTests.cs (2)
2559
Assert.Equal(2, solution.
GetProjectsByName
("name").Count());
2842
Assert.Equal(project, solution.
GetProjectsByName
(project.Name).FirstOrDefault());