7 references to GetNodesWithProjectNumber
Microsoft.Build.Engine.UnitTests (7)
Graph\GraphTestingUtilities.cs (3)
133
return
GetNodesWithProjectNumber
(graph, projectNum).First();
143
return
GetNodesWithProjectNumber
(graph, projectNumber).FirstOrDefault(i => i.ProjectType == ProjectInterpretation.ProjectType.OuterBuild);
156
var innerBuilds =
GetNodesWithProjectNumber
(graph, projectNumber)
Graph\ProjectGraph_Tests.cs (4)
2105
var innerBuildWithCommonReferences =
GetNodesWithProjectNumber
(graph, 1).First(n => n.ProjectInstance.GlobalProperties.TryGetValue(InnerBuildPropertyName, out string p) && p == "a");
2111
var innerBuildWithAdditionalReferences =
GetNodesWithProjectNumber
(graph, 1).First(n => n.ProjectInstance.GlobalProperties.TryGetValue(InnerBuildPropertyName, out string p) && p == "b");
2143
var referencedInnerBuild =
GetNodesWithProjectNumber
(graph, 1).First(n => n.ProjectInstance.GetPropertyValue(InnerBuildPropertyName) == "a");
2233
GetNodesWithProjectNumber
(graph, 2).Count().ShouldBe(2);