142 references to MakeList
Microsoft.Build.Engine.OM.UnitTests (129)
Construction\ConstructionEditing_Tests.cs (4)
93var targets = Helpers.MakeList(project.Targets); 426var children = Helpers.MakeList(project.Children); 453var children = Helpers.MakeList(project.Children); 530var children = Helpers.MakeList(project.Children);
Construction\ProjectChooseElement_Tests.cs (1)
224List<ProjectWhenElement> whens = Helpers.MakeList(choose.WhenElements);
Construction\ProjectImportElement_Tests.cs (1)
101List<ProjectImportElement> imports = Helpers.MakeList(project.Imports);
Construction\ProjectImportGroupElement_Tests.cs (4)
267List<ProjectImportElement> imports = Helpers.MakeList(project.Imports); 268List<ProjectImportGroupElement> importGroups = Helpers.MakeList(project.ImportGroups); 299List<ProjectImportElement> imports = Helpers.MakeList(project.Imports); 300List<ProjectImportGroupElement> importGroups = Helpers.MakeList(project.ImportGroups);
Construction\ProjectItemDefinitionElement_Tests.cs (1)
112var metadata = Helpers.MakeList(itemDefinition.Metadata);
Construction\ProjectItemDefinitionGroupElement_Tests.cs (1)
87var itemDefinitionGroups = Helpers.MakeList(project.ItemDefinitionGroups);
Construction\ProjectItemElement_Tests.cs (6)
361var items = Helpers.MakeList(itemGroup.Items); 366var metadata1 = Helpers.MakeList(items[0].Metadata); 371var metadata2 = Helpers.MakeList(items[1].Metadata); 415var metadata = Helpers.MakeList(item.Metadata); 964Assert.Empty(Helpers.MakeList(project.Items)); 996Assert.Empty(Helpers.MakeList(project.Items));
Construction\ProjectItemGroupElement_tests.cs (1)
68var items = Helpers.MakeList(group.Items);
Construction\ProjectMetadataElement_Tests.cs (18)
303var items = Helpers.MakeList(itemGroup.Items); 330var itemDefinitions = Helpers.MakeList(itemDefinitionGroup.ItemDefinitions); 431var items = Helpers.MakeList(itemGroup.Items); 456var itemDefinitions = Helpers.MakeList(itemDefinitionGroup.ItemDefinitions); 490var items = Helpers.MakeList(itemGroup.Items); 515var itemDefinitions = Helpers.MakeList(itemDefinitionGroup.ItemDefinitions); 567var items = Helpers.MakeList(itemGroup.Items); 610var itemDefinitions = Helpers.MakeList(itemDefinitionGroup.ItemDefinitions); 684var items = Helpers.MakeList(itemGroup.Items); 727var itemDefinitions = Helpers.MakeList(itemDefinitionGroup.ItemDefinitions); 813var items = Helpers.MakeList(itemGroup.Items); 876var itemDefinitions = Helpers.MakeList(itemDefinitionGroup.ItemDefinitions); 945var items = Helpers.MakeList(itemGroup.Items); 988var itemDefinitions = Helpers.MakeList(itemDefinitionGroup.ItemDefinitions); 1060var items = Helpers.MakeList(itemGroup.Items); 1100var itemDefinitions = Helpers.MakeList(itemDefinitionGroup.ItemDefinitions); 1171var items = Helpers.MakeList(itemGroup.Items); 1218var itemDefinitions = Helpers.MakeList(itemDefinitionGroup.ItemDefinitions);
Construction\ProjectOnErrorElement_Tests.cs (1)
52var onErrors = Helpers.MakeList(target.OnErrors);
Construction\ProjectPropertyGroupElement_Tests.cs (1)
67var properties = Helpers.MakeList(group.Properties);
Construction\ProjectRootElement_Tests.cs (7)
543Console.WriteLine(@"Targets: {0}", Helpers.MakeList(project.Targets).Count); 544Console.WriteLine(@"Root ItemGroups: {0}", Helpers.MakeList(project.ItemGroups).Count); 545Console.WriteLine(@"Root PropertyGroups: {0}", Helpers.MakeList(project.PropertyGroups).Count); 546Console.WriteLine(@"UsingTasks: {0}", Helpers.MakeList(project.UsingTasks).Count); 547Console.WriteLine(@"ItemDefinitionGroups: {0}", Helpers.MakeList(project.ItemDefinitionGroups).Count); 830List<ProjectPropertyElement> properties = Helpers.MakeList(project.Properties); 888List<ProjectItemElement> items = Helpers.MakeList(project.Items);
Construction\ProjectTargetElement_Tests.cs (1)
202var tasks = Helpers.MakeList(target.Children);
Definition\DefinitionEditing_Tests.cs (34)
163List<ProjectItem> items = Helpers.MakeList(project.Items); 168Assert.Equal("i1", Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))[0].EvaluatedInclude); 190List<ProjectItem> items = Helpers.MakeList(project.Items); 195Assert.Equal("i(1)", Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))[0].EvaluatedInclude); 292List<ProjectItem> items = Helpers.MakeList(project.Items); 1034ProjectItem item = Helpers.MakeList(project.GetItems("i"))[1]; 1063ProjectItem item = Helpers.MakeList(project.GetItems("i"))[1]; 1080Assert.Equal("$(p)", (Helpers.MakeList(project.Items))[1].EvaluatedInclude); 1189Assert.Single(Helpers.MakeList(itemGroupElement.Items)); 1192Assert.Single(Helpers.MakeList(project.Items)); 1193Assert.Single(Helpers.MakeList(project.ItemsIgnoringCondition)); 1195Assert.Empty(Helpers.MakeList(project.GetItems("i"))); 1196Assert.Empty(Helpers.MakeList(project.GetItemsIgnoringCondition("i"))); 1239Assert.Equal(2, Helpers.MakeList(itemElement.Metadata).Count); 1283Assert.Equal(2, Helpers.MakeList(itemGroupElement.Items).Count); 1313Assert.Empty(Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))); 1437Assert.Empty(Helpers.MakeList(project.GetItems("i"))); 1438List<ProjectItem> itemsIgnoringCondition = Helpers.MakeList(project.GetItemsIgnoringCondition("i")); 1446itemsIgnoringCondition = Helpers.MakeList(project.GetItemsIgnoringCondition("i")); 1473int environmentPropertyCount = Helpers.MakeList(project.Properties).Count; 1498int environmentPropertyCount = Helpers.MakeList(project.Properties).Count; 1533Assert.Single(Helpers.MakeList(xml.Properties)); 1819int environmentPropertyCount = Helpers.MakeList(project.Properties).Count; 1882List<ProjectItem> items = Helpers.MakeList(project.Items); 1884Assert.Equal("m1", Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))[0].GetMetadataValue("m")); 1910List<ProjectItem> items = Helpers.MakeList(project.Items); 1912Assert.Equal("m1$$", Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))[0].GetMetadataValue("m")); 1940List<ProjectItem> items = Helpers.MakeList(project.Items); 1958items = Helpers.MakeList(project.Items); 2087List<ProjectItem> items = Helpers.MakeList(project.Items); 2092Assert.Equal("i1", Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))[0].EvaluatedInclude); 2114List<ProjectItem> items = Helpers.MakeList(project.Items); 2119Assert.Equal("i(1)", Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))[0].EvaluatedInclude); 2216List<ProjectItem> items = Helpers.MakeList(project.Items);
Definition\Project_Tests.cs (14)
603List<ProjectItem> items = Helpers.MakeList(project.GetItems("i")); 1669List<ProjectItem> items = Helpers.MakeList(project.GetItemsByEvaluatedInclude("i1")); 1692List<ProjectItem> items = Helpers.MakeList(project.GetItemsByEvaluatedInclude("i&1")); 1714List<ProjectItem> items = Helpers.MakeList(project.GetItemsByEvaluatedInclude("i2")); 1794List<ProjectItem> items = Helpers.MakeList(project.GetItemsByEvaluatedInclude("i1")); 1800items = Helpers.MakeList(project.GetItemsByEvaluatedInclude("i1")); 1814List<ProjectItem> items = Helpers.MakeList(project.GetItemsByEvaluatedInclude("i1")); 1829List<ProjectItem> items = Helpers.MakeList(project.GetItemsByEvaluatedInclude("i1")); 1858Helpers.MakeList(project.GetItems("i"))[0].EvaluatedInclude.ShouldBe("i1"); 1894Helpers.MakeList(project.GetItems("i"))[0].EvaluatedInclude.ShouldBe("i2"); 1930Helpers.MakeList(project.GetItems("i"))[0].EvaluatedInclude.ShouldBe("i2"); 2226Helpers.MakeList(project.Items).ShouldBeEmpty(); 2248Helpers.MakeList(project.Items).ShouldBeEmpty(); 4424IList<ProjectItem> items = Helpers.MakeList(project.GetItems("i"));
Definition\ProjectCollection_Tests.cs (8)
428List<Project> projects = Helpers.MakeList(ProjectCollection.GlobalProjectCollection.LoadedProjects); 705Assert.Empty(Helpers.MakeList(ProjectCollection.GlobalProjectCollection.LoadedProjects)); 794Assert.True(ReferenceEquals(project, Helpers.MakeList(ProjectCollection.GlobalProjectCollection.LoadedProjects)[0])); 960List<Toolset> toolsets = Helpers.MakeList(collection.Toolsets); 983List<Toolset> toolsets = Helpers.MakeList(collection.Toolsets); 1006List<Toolset> toolsets = Helpers.MakeList(collection.Toolsets); 1034int initial = Helpers.MakeList(collection.Toolsets).Count; 1042Assert.Equal(1, Helpers.MakeList(collection.Toolsets).Count - initial);
Definition\ProjectItem_Tests.cs (3)
127var itemMetadata = Helpers.MakeList(item.Metadata); 1531var itemMetadata = Helpers.MakeList(item.Metadata); 3710itemsFromFragmentWithGlobs = Helpers.MakeList(new Project(testProject.ProjectFile).GetItems("i"));
Definition\ProjectItemDefinition_Tests.cs (2)
86List<ProjectMetadata> metadataList = Helpers.MakeList(metadataCollection); 106List<ProjectMetadata> metadataList = Helpers.MakeList(metadataCollection);
Instance\ProjectInstance_Tests.cs (14)
66IList<ProjectItemInstance> items = Helpers.MakeList(p.GetItems("i")); 135Assert.True(object.ReferenceEquals(returned, Helpers.MakeList(p.GetItems("i"))[0])); 141var metadataOut = Helpers.MakeList(item.Metadata); 265Assert.Single(Helpers.MakeList(project.GetItems("j"))); 266Assert.Equal("i1", Helpers.MakeList(project.GetItems("j"))[0].EvaluatedInclude); 267Assert.Equal("m1", Helpers.MakeList(project.GetItems("j"))[0].GetMetadataValue("m")); 268Assert.Equal("n;;", Helpers.MakeList(project.GetItems("j"))[0].GetMetadataValue("n")); 309Assert.Equal(2, Helpers.MakeList(projectInstance.GetItems("i")).Count); 310Assert.Equal(file1, Helpers.MakeList(projectInstance.GetItems("i"))[0].EvaluatedInclude); 311Assert.Equal(file2, Helpers.MakeList(projectInstance.GetItems("i"))[1].EvaluatedInclude); 331Assert.False(Object.ReferenceEquals(Helpers.MakeList(first.GetItems("i"))[0], Helpers.MakeList(second.GetItems("i"))[0])); 334Assert.Equal(4, Helpers.MakeList(first.GetItems("i")).Count); 335Assert.Equal(3, Helpers.MakeList(second.GetItems("i")).Count);
Instance\ProjectItemInstance_Tests.cs (6)
455Assert.Equal(0 + BuiltInMetadataCount, Helpers.MakeList(item.MetadataNames).Count); 478var itemMetadata = Helpers.MakeList(item.Metadata); 557Assert.Equal(3, Helpers.MakeList(item.Metadata).Count); 558Assert.Equal(3 + BuiltInMetadataCount, Helpers.MakeList(item.MetadataNames).Count); 636var itemMetadata = Helpers.MakeList(item.Metadata); 1174return Helpers.MakeList(project.GetItems("i"));
Instance\ProjectTargetInstance_Tests.cs (1)
40IList<ProjectTaskInstance> tasks = Helpers.MakeList(target.Tasks);
Microsoft.Build.Engine.UnitTests (12)
BackEnd\BuildRequestConfiguration_Tests.cs (1)
176Assert.Equal(props.Count, Helpers.MakeList((IEnumerable<ProjectPropertyInstance>)(config1.GlobalProperties)).Count);
Collections\MultiDictionary_Tests.cs (4)
105List<string> values = Helpers.MakeList<string>(dictionary["x"]); 112values = Helpers.MakeList<string>(dictionary["y"]); 117values = Helpers.MakeList<string>(dictionary["z"]); 143List<string> values = Helpers.MakeList<string>(dictionary["x"]);
Definition\ProjectItem_Tests.cs (2)
36Assert.Single(Helpers.MakeList(item2.Metadata)); 84IList<ProjectItem> item = Helpers.MakeList(project.GetItems("i"));
Instance\ProjectInstance_Internal_Tests.cs (5)
178List<ProjectPropertyGroupTaskPropertyInstance> properties = Helpers.MakeList(propertyGroup.Properties); 216List<ProjectItemGroupTaskItemInstance> items = Helpers.MakeList(itemGroup.Items); 234List<ProjectItemGroupTaskMetadataInstance> metadata1 = Helpers.MakeList(items[0].Metadata); 235List<ProjectItemGroupTaskMetadataInstance> metadata2 = Helpers.MakeList(items[1].Metadata); 236List<ProjectItemGroupTaskMetadataInstance> metadata3 = Helpers.MakeList(items[2].Metadata);
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
1105IList<ProjectItem> item = Helpers.MakeList(