120 references to GetFirstNodeWithProjectNumber
Microsoft.Build.Engine.UnitTests (120)
Graph\GetCompatiblePlatformGraph_Tests.cs (16)
60
GetFirstNodeWithProjectNumber
(graph, 1).ProjectInstance.GlobalProperties.ContainsKey("Platform").ShouldBeFalse();
100
GetFirstNodeWithProjectNumber
(graph, 2).ProjectInstance.GlobalProperties["Platform"].ShouldBe("x86");
101
GetFirstNodeWithProjectNumber
(graph, 3).ProjectInstance.GlobalProperties["Platform"].ShouldBe("x86");
142
GetFirstNodeWithProjectNumber
(graph, 2).ProjectInstance.GlobalProperties.ContainsKey("Platform").ShouldBeFalse();
143
GetFirstNodeWithProjectNumber
(graph, 3).ProjectInstance.GlobalProperties["Platform"].ShouldBe("x86");
182
GetFirstNodeWithProjectNumber
(graph, 2).ProjectInstance.GlobalProperties["Platform"].ShouldBe("AnyCPU");
183
GetFirstNodeWithProjectNumber
(graph, 3).ProjectInstance.GlobalProperties["Platform"].ShouldBe("AnyCPU");
211
GetFirstNodeWithProjectNumber
(graph, 2).ProjectInstance.GlobalProperties["Platform"].ShouldBe("x64");
239
GetFirstNodeWithProjectNumber
(graph, 2).ProjectInstance.GlobalProperties["Platform"].ShouldBe("x86");
266
GetFirstNodeWithProjectNumber
(graph, 2).ProjectInstance.GlobalProperties["Platform"].ShouldBe("AnyCPU");
294
GetFirstNodeWithProjectNumber
(graph, 2).ProjectInstance.GlobalProperties["Platform"].ShouldBe("x86");
324
GetFirstNodeWithProjectNumber
(graph, 2).ProjectInstance.GlobalProperties.ContainsKey("Platform").ShouldBeFalse();
351
GetFirstNodeWithProjectNumber
(graph, 2).ProjectInstance.GetPropertyValue("Platform").ShouldBe(
GetFirstNodeWithProjectNumber
(graph, 1).ProjectInstance.GetPropertyValue("Platform"));
447
GetFirstNodeWithProjectNumber
(graphFromSolution, 2).ProjectInstance.GetPropertyValue("Platform").ShouldBe("AnyCPU", "Project2 should have followed the sln config to AnyCPU");
448
GetFirstNodeWithProjectNumber
(graphFromSolution, 3).ProjectInstance.GetPropertyValue("Platform").ShouldBe("x64", "Project3 isn't in the solution so it should have negotiated to x64 to match Project1");
Graph\GraphLoadedFromSolution_tests.cs (1)
625
var node1 =
GetFirstNodeWithProjectNumber
(graph, 1);
Graph\GraphTestingUtilities.cs (1)
236
var node =
GetFirstNodeWithProjectNumber
(graph, kvp.Key);
Graph\ProjectGraph_Tests.cs (102)
233
GetFirstNodeWithProjectNumber
(graph, 1).ProjectReferences.Count.ShouldBe(2);
234
GetFirstNodeWithProjectNumber
(graph, 2).ProjectReferences.Count.ShouldBe(0);
235
GetFirstNodeWithProjectNumber
(graph, 3).ProjectReferences.Count.ShouldBe(0);
262
ProjectGraphNode node1 =
GetFirstNodeWithProjectNumber
(graph, 1);
263
ProjectGraphNode node2 =
GetFirstNodeWithProjectNumber
(graph, 2);
264
ProjectGraphNode node3 =
GetFirstNodeWithProjectNumber
(graph, 3);
265
ProjectGraphNode node4 =
GetFirstNodeWithProjectNumber
(graph, 4);
266
ProjectGraphNode node5 =
GetFirstNodeWithProjectNumber
(graph, 5);
267
ProjectGraphNode node6 =
GetFirstNodeWithProjectNumber
(graph, 6);
268
ProjectGraphNode node7 =
GetFirstNodeWithProjectNumber
(graph, 7);
369
var root1 =
GetFirstNodeWithProjectNumber
(graph, 1);
376
var root2 =
GetFirstNodeWithProjectNumber
(graph, 2);
409
GetFirstNodeWithProjectNumber
(graph, 2).ProjectReferences.First().ShouldNotBe(
GetFirstNodeWithProjectNumber
(graph, 3).ProjectReferences.First());
410
GetFirstNodeWithProjectNumber
(graph, 2).ProjectReferences.First().ProjectInstance.FullPath.ShouldEndWith("4.proj");
411
GetFirstNodeWithProjectNumber
(graph, 2).ProjectReferences.First().ProjectInstance.GlobalProperties.ShouldBeSameIgnoringOrder(EmptyGlobalProperties);
412
GetFirstNodeWithProjectNumber
(graph, 3).ProjectReferences.First().ProjectInstance.FullPath.ShouldEndWith("4.proj");
413
GetFirstNodeWithProjectNumber
(graph, 3).ProjectReferences.First().ProjectInstance.GlobalProperties.Count.ShouldBeGreaterThan(1);
432
GetFirstNodeWithProjectNumber
(graph, 3).ProjectInstance.GlobalProperties["A"].ShouldBe("B");
466
var node4A =
GetFirstNodeWithProjectNumber
(graph, 2).ProjectReferences.First();
467
var node4B =
GetFirstNodeWithProjectNumber
(graph, 3).ProjectReferences.First();
503
GetFirstNodeWithProjectNumber
(graph, 2).ProjectReferences.First().ShouldBe(
GetFirstNodeWithProjectNumber
(graph, 3).ProjectReferences.First());
538
GetFirstNodeWithProjectNumber
(graph, 2).ProjectReferences.First().ShouldBe(
GetFirstNodeWithProjectNumber
(graph, 3).ProjectReferences.First());
539
GetFirstNodeWithProjectNumber
(graph, 2).ProjectReferences.First().ProjectInstance.FullPath.ShouldEndWith("5.proj");
540
GetFirstNodeWithProjectNumber
(graph, 2).ProjectReferences.First().ProjectInstance.GlobalProperties["FoO"].ShouldBe("bar");
543
GetFirstNodeWithProjectNumber
(graph, 4).ProjectReferences.First().ShouldNotBe(
GetFirstNodeWithProjectNumber
(graph, 2).ProjectReferences.First());
544
GetFirstNodeWithProjectNumber
(graph, 4).ProjectReferences.First().ProjectInstance.FullPath.ShouldEndWith("5.proj");
545
GetFirstNodeWithProjectNumber
(graph, 4).ProjectReferences.First().ProjectInstance.GlobalProperties["FoO"].ShouldBe("BAR");
581
var node1 =
GetFirstNodeWithProjectNumber
(projectGraph, 1);
582
var node2 =
GetFirstNodeWithProjectNumber
(projectGraph, 2);
583
var node3 =
GetFirstNodeWithProjectNumber
(projectGraph, 3);
676
projectGraph.GraphRoots.ShouldNotContain(
GetFirstNodeWithProjectNumber
(projectGraph, 2));
929
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 1)].ShouldBe(new[] { "A" });
930
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 2)].ShouldBe(new[] { "B" });
931
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 3)].ShouldBe(new[] { "B" });
932
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 4)].ShouldBe(new[] { "C", "D" }); // From B => C and B => D
957
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 1)].ShouldBe(new[] { "A" });
958
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 2)].ShouldBe(new[] { "B", "X", "C" });
959
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 3)].ShouldBe(new[] { "X", "Y", "Z" }); // Simplified from X, Y, X, Z
988
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 1)].ShouldBe(new[] { "A" });
989
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 2)].ShouldBe(new[] { "B" });
990
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 3)].ShouldBe(new[] { "B" });
991
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 4)].ShouldBe(new[] { "C" });
992
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 5)].ShouldBe(new[] { "B", "C", "D" });
993
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 6)].ShouldBe(new[] { "C", "D", "E" });
1010
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 1)].ShouldBe(new[] { "A" });
1011
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 2)].ShouldBe(new[] { "B" });
1028
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 1)].ShouldBe(new[] { "Foo" });
1029
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 2)].ShouldBeEmpty();
1051
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 1)].ShouldBeEmpty();
1052
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 2)].ShouldBeEmpty();
1074
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 1)].ShouldBe(new[] { "A" });
1075
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 2)].ShouldBeEmpty();
1118
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 1)].ShouldBe(new[] { "A" });
1119
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 2)].ShouldBe(NonOuterBuildTargets);
1159
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 1)].ShouldBe(new[] { "A" });
1160
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 2)].ShouldBe(NonOuterBuildTargets);
1193
var root =
GetFirstNodeWithProjectNumber
(projectGraph, 1);
1270
targetLists[
GetFirstNodeWithProjectNumber
(graph, 2)].ShouldBe(new[] { "T2", "A", "AOuter", "AInner" });
1370
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 2)].ShouldBe(new[] { "A" });
1371
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 4)].ShouldBe(NonOuterBuildTargets);
1372
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 5)].ShouldBe(NonOuterBuildTargets);
1399
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 1)].ShouldBe(new[] { "A" });
1400
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 2)].ShouldBe(new[] { "B" });
1422
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 1)].ShouldBe(new[] { "Build" });
1423
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 2)].ShouldBe(new[] { "A", "Build" });
1452
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 1)].ShouldBe(new[] { "Build" });
1453
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 2)].ShouldBe(new[] { "A", "Build" });
1454
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 3)].ShouldBe(new[] { "A", "X" });
1455
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 4)].ShouldBe(new[] { "A", "Y" });
1456
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 5)].ShouldBe(new[] { "A", "Build" });
1457
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 6)].ShouldBe(new[] { "B", "Build" });
1458
targetLists[
GetFirstNodeWithProjectNumber
(projectGraph, 7)].ShouldBe(new[] { "C", "Z", "W" });
1509
targetLists[key:
GetFirstNodeWithProjectNumber
(graph: projectGraph, projectNum: 1)].ShouldBe(expected: new[] { "Build" });
1510
targetLists[key:
GetFirstNodeWithProjectNumber
(graph: projectGraph, projectNum: 2)].ShouldBe(expected: new[] { "Build" });
1511
targetLists[key:
GetFirstNodeWithProjectNumber
(graph: projectGraph, projectNum: 3)].ShouldBe(expected: new[] { "Build" });
1512
targetLists[key:
GetFirstNodeWithProjectNumber
(graph: projectGraph, projectNum: 4)].ShouldBe(expected: new[] { "Build" });
1513
targetLists[key:
GetFirstNodeWithProjectNumber
(graph: projectGraph, projectNum: 5)].ShouldBe(expected: new[] { "T51", "T2", "T53", "T54", "T3", "D51", "D52", "T4" });
1553
targetLists[key:
GetFirstNodeWithProjectNumber
(graph: graph, projectNum: 1)].ShouldBe(expected: new[] { "Build" });
1554
targetLists[key:
GetFirstNodeWithProjectNumber
(graph: graph, projectNum: 2)].ShouldBe(expected: new[] { "NonskippableTarget1", "NonskippableTarget2", "SkippableExistingTarget" });
1603
targetLists[key:
GetFirstNodeWithProjectNumber
(graph: graph, projectNum: 1)].ShouldBe(expected: new[] { "Build" });
1604
targetLists[key:
GetFirstNodeWithProjectNumber
(graph: graph, projectNum: 2)].ShouldBe(expected: new[] { "NonskippableTarget1", "SkippableExistingTarget" });
1955
var outerBuildReferencingNode =
GetFirstNodeWithProjectNumber
(graph, 1);
2005
var nonMultitargetingNode =
GetFirstNodeWithProjectNumber
(graph, 2);
2033
var nonMultitargetingNode =
GetFirstNodeWithProjectNumber
(graph, 2);
2052
var nonMultitargetingNode =
GetFirstNodeWithProjectNumber
(graph, 2);
2074
AssertNonMultitargetingNode(
GetFirstNodeWithProjectNumber
(graph, 2));
2075
AssertNonMultitargetingNode(
GetFirstNodeWithProjectNumber
(graph, 3));
2102
AssertNonMultitargetingNode(
GetFirstNodeWithProjectNumber
(graph, 3));
2103
AssertNonMultitargetingNode(
GetFirstNodeWithProjectNumber
(graph, 5));
2141
AssertNonMultitargetingNode(
GetFirstNodeWithProjectNumber
(graph, 2), additionalGlobalProperties);
2145
var two =
GetFirstNodeWithProjectNumber
(graph, 2);
2545
GetFirstNodeWithProjectNumber
(graph, 2).AssertReferencesIgnoringOrder(new[] { 3, 4, 4, 4, 5, 6, 6, 6 });
2698
ProjectGraphNode project1 =
GetFirstNodeWithProjectNumber
(graph, 1);
2699
ProjectGraphNode project2 =
GetFirstNodeWithProjectNumber
(graph, 2);
2740
ProjectGraphNode project1 =
GetFirstNodeWithProjectNumber
(graph, 1);
2741
ProjectGraphNode project2 =
GetFirstNodeWithProjectNumber
(graph, 2);
2874
ProjectGraphNode project1Node =
GetFirstNodeWithProjectNumber
(projectGraph, 1);
2875
ProjectGraphNode project2Node =
GetFirstNodeWithProjectNumber
(projectGraph, 2);