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