14 references to GetProjectNumber
Microsoft.Build.Engine.UnitTests (14)
Graph\GraphLoadedFromSolution_tests.cs (8)
213node => GetProjectNumber(node).ToString(), 217configurationName: $"{sc.ConfigurationName}_{GetProjectNumber(n)}", 218platformName: $"{sc.PlatformName}_{GetProjectNumber(n)}", 627node1.ProjectReferences.Count(r => GetProjectNumber(r) == 2).ShouldBe(3); 632outerBuild3.ProjectReferences.Count(r => GetProjectNumber(r) == 3).ShouldBe(2); 633outerBuild3.ProjectReferences.Count(r => GetProjectNumber(r) == 4).ShouldBe(1); 635GetInnerBuilds(graph, 3).SelectMany(n => n.ProjectReferences).Count(r => GetProjectNumber(r) == 4).ShouldBe(2); 710var expectedProjectConfiguration = actualProjectConfigurations[GetProjectNumber(node).ToString()][expectedCurrentConfiguration];
Graph\GraphTestingUtilities.cs (1)
243node.ProjectReferences.Select(GetProjectNumber).ShouldBeSameIgnoringOrder(expectedReferences);
Graph\ProjectGraph_Tests.cs (4)
373root1.ProjectReferences.First(r => GetProjectNumber(r) == 3).ProjectInstance.GlobalProperties.ShouldBeSameIgnoringOrder(globalPropertiesFor1); 374root1.ProjectReferences.First(r => GetProjectNumber(r) == 4).ProjectInstance.GlobalProperties.ShouldBeSameIgnoringOrder(globalPropertiesFor1); 380root2.ProjectReferences.First(r => GetProjectNumber(r) == 4).ProjectInstance.GlobalProperties.ShouldBeSameIgnoringOrder(globalPropertiesFor2); 381root2.ProjectReferences.First(r => GetProjectNumber(r) == 5).ProjectInstance.GlobalProperties.ShouldBeSameIgnoringOrder(globalPropertiesFor2);
SolutionFileBuilder.cs (1)
95n => GraphTestingUtilities.GetProjectNumber((ProjectGraphNode)n).ToString(),