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