58 references to ProjectGraph
Microsoft.Build.Engine.UnitTests (58)
BackEnd\BuildManager_Tests.cs (2)
4203var graph = new ProjectGraph(project1); 4288var graph = new ProjectGraph(project1);
Graph\GetCompatiblePlatformGraph_Tests.cs (10)
59ProjectGraph graph = new ProjectGraph(entryProject.Path); 99ProjectGraph graph = new ProjectGraph(entryProject.Path); 141ProjectGraph graph = new ProjectGraph(entryProject.Path); 181ProjectGraph graph = new ProjectGraph(entryProject.Path); 210ProjectGraph graph = new ProjectGraph(entryProject.Path); 238ProjectGraph graph = new ProjectGraph(entryProject.Path); 265ProjectGraph graph = new ProjectGraph(entryProject.Path); 293ProjectGraph graph = new ProjectGraph(entryProject.Path); 320ProjectGraph graph = new ProjectGraph(entryProject.Path); 350ProjectGraph graph = new ProjectGraph(entryProject.Path);
Graph\GraphLoadedFromSolution_tests.cs (6)
59new ProjectGraph("nonExistent.sln"); 83var aggException = Should.Throw<AggregateException>(() => new ProjectGraph(root.Path)); 254var graph = new ProjectGraph(solutionFile); 509graphFromSolution = new ProjectGraph(solutionFile); 596var graph = new ProjectGraph(_env.CreateFile("solution.sln", solutionContents).Path); 620var graph = new ProjectGraph(_env.CreateFile("solution.sln", solutionContents).Path);
Graph\ProjectGraph_Tests.cs (39)
65var projectGraph = new ProjectGraph(entryProject.Path); 93Should.Throw<CircularDependencyException>(() => new ProjectGraph(entryProject.Path)); 230ProjectGraph graph = new ProjectGraph(entryProject.Path); 259ProjectGraph graph = new ProjectGraph(entryProject.Path); 310Should.Throw<CircularDependencyException>(() => new ProjectGraph(entryProject.Path)).Message.ShouldContain(expectedErrorMessage); 322Should.Throw<CircularDependencyException>(() => new ProjectGraph(entryProject.Path)); 344Should.Throw<CircularDependencyException>(() => new ProjectGraph(entryProject.Path)).Message.ShouldContain(errorMessage); 403ProjectGraph graph = new ProjectGraph(entryProject.Path); 430ProjectGraph graph = new ProjectGraph(entryProject.Path); 461ProjectGraph graph = new ProjectGraph(entryProject.Path); 532ProjectGraph graph = new ProjectGraph(entryProject.Path); 563var aggException = Should.Throw<AggregateException>(() => new ProjectGraph(entryProject.Path)); 861var projectGraph = new ProjectGraph(slnFile.Path); 924var projectGraph = new ProjectGraph(entryProject.Path); 952var projectGraph = new ProjectGraph(entryProject.Path); 983var projectGraph = new ProjectGraph(entryProject.Path); 1005var projectGraph = new ProjectGraph(entryProject.Path); 1023var projectGraph = new ProjectGraph(entryProject.Path); 1046var projectGraph = new ProjectGraph(entryProject.Path); 1069var projectGraph = new ProjectGraph(entryProject.Path); 1086var projectGraph = new ProjectGraph(entryProject.Path); 1109var projectGraph = new ProjectGraph(root1); 1150var projectGraph = new ProjectGraph(root1); 1184var projectGraph = new ProjectGraph(root1); 1251var graph = new ProjectGraph(entryProject); 1394var projectGraph = new ProjectGraph(entryProject.Path); 1417var projectGraph = new ProjectGraph(entryProject.Path); 1447var projectGraph = new ProjectGraph(entryProject.Path); 1504var projectGraph = new ProjectGraph(entryProjectFile: entryProject.Path); 1884var graph = new ProjectGraph(projectFile); 1911var graph = new ProjectGraph(entryProject); 1945var graph = new ProjectGraph(entryProject); 1978var graph = new ProjectGraph(root); 1997var graph = new ProjectGraph(root); 2025var graph = new ProjectGraph(root); 2065var graph = new ProjectGraph(root); 2092var graph = new ProjectGraph(root); 2873ProjectGraph projectGraph = new(slnFile.Path); 2918ProjectGraph projectGraph = new(slnFile.Path);
ProjectCache\ProjectCacheTests.cs (1)
1347GraphBuildResult graphResult = buildSession.BuildGraph(new ProjectGraph(project.Path));