39 references to Count
Microsoft.Build.Engine.OM.UnitTests (39)
Construction\ConstructionEditing_Tests.cs (12)
43Assert.Equal(1, Helpers.Count(project.Children)); 44Assert.Equal(0, Helpers.Count(target.Children)); 1183Assert.Equal(0, Helpers.Count(project.Children)); 1323Assert.Equal(1, Helpers.Count(project.Children)); 1324Assert.Equal(2, Helpers.Count(choose.Children)); 1347Assert.Equal(1, Helpers.Count(project.Children)); 1371Assert.Equal(1, Helpers.Count(project.Children)); 1428Assert.Equal(2, Helpers.Count(project.Children)); 1539Assert.Equal(3, Helpers.Count(project.Children)); 1572Assert.Equal(5, Helpers.Count(project.Children)); 2329Assert.Equal(1, Helpers.Count(project.Items)); 2333Assert.Equal(0, Helpers.Count(project.Items));
Construction\ProjectChooseElement_Tests.cs (1)
200Assert.Equal(1, Helpers.Count(choose.WhenElements));
Construction\ProjectImportGroupElement_Tests.cs (1)
170Assert.Equal(0, Helpers.Count(importGroup.Imports));
Construction\ProjectItemDefinitionElement_Tests.cs (2)
39Assert.Equal(0, Helpers.Count(itemDefinition.Metadata)); 64Assert.Equal(1, Helpers.Count(definition.Metadata));
Construction\ProjectItemDefinitionGroupElement_Tests.cs (4)
26Assert.Equal(0, Helpers.Count(project.Children)); 63Assert.Equal(0, Helpers.Count(itemDefinitionGroup.ItemDefinitions)); 90Assert.Equal(1, Helpers.Count(itemDefinitionGroups[0].ItemDefinitions)); 91Assert.Equal(2, Helpers.Count(itemDefinitionGroups[1].ItemDefinitions));
Construction\ProjectItemElement_Tests.cs (1)
82Assert.Equal(0, Helpers.Count(item.Metadata));
Construction\ProjectItemGroupElement_tests.cs (2)
26Assert.Equal(0, Helpers.Count(project.Children)); 46Assert.Equal(0, Helpers.Count(group.Items));
Construction\ProjectPropertyGroupElement_Tests.cs (2)
25Assert.Equal(0, Helpers.Count(project.Children)); 45Assert.Equal(0, Helpers.Count(group.Properties));
Construction\ProjectRootElement_Tests.cs (2)
108Assert.Equal(0, Helpers.Count(project.Children)); 542Console.WriteLine(@"Children: {0}", Helpers.Count(project.Children));
Construction\ProjectTargetElement_Tests.cs (1)
63Assert.Equal(0, Helpers.Count(target.Children));
Construction\ProjectTaskElement_Tests.cs (1)
38Assert.Equal(0, Helpers.Count(task.Outputs));
Definition\DefinitionEditing_Tests.cs (4)
1312Assert.Equal(0, Helpers.Count(project.Items)); 1488Assert.Equal(1, Helpers.Count(project.Properties) - environmentPropertyCount); 1513Assert.Equal(1, Helpers.Count(project.Properties) - environmentPropertyCount); 1833Assert.Equal(0, Helpers.Count(project.Properties) - environmentPropertyCount);
Definition\Project_Tests.cs (4)
1744count = Helpers.Count(projectConstruction.Items); 1749count = Helpers.Count(project.GetItems("foo")); 1762count = Helpers.Count(project.GetItems("foo")); 1766count = Helpers.Count(projectInstance.Items);
Definition\ProjectItem_Tests.cs (2)
1881Assert.Equal(0, Helpers.Count(item.Xml.Metadata)); 1900Assert.Equal(0, Helpers.Count(item.DirectMetadata));