75 references to Children
Microsoft.Build (1)
Construction\ProjectElementContainer.cs (1)
86/// Use this instead of <see cref="Children"/> to avoid boxing.
Microsoft.Build.Engine.OM.UnitTests (74)
Construction\ConstructionEditing_Tests.cs (18)
43Assert.Equal(1, Helpers.Count(project.Children)); 44Assert.Equal(0, Helpers.Count(target.Children)); 426var children = Helpers.MakeList(project.Children); 453var children = Helpers.MakeList(project.Children); 530var children = Helpers.MakeList(project.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)); 1348Assert.Equal(target1, Helpers.GetFirst(project.Children)); 1371Assert.Equal(1, Helpers.Count(project.Children)); 1372Assert.Equal(target2, Helpers.GetFirst(project.Children)); 1428Assert.Equal(2, Helpers.Count(project.Children)); 1429Assert.Equal(target2, Helpers.GetFirst(project.Children)); 1539Assert.Equal(3, Helpers.Count(project.Children)); 1540Assert.Equal(propertyGroup, Helpers.GetFirst(project.Children)); 1572Assert.Equal(5, Helpers.Count(project.Children)); 1573Assert.Equal(propertyGroup3, Helpers.GetLast(project.Children));
Construction\ProjectChooseElement_Tests.cs (4)
178ProjectChooseElement choose = (ProjectChooseElement)Helpers.GetFirst(project.Children); 180Assert.Null(Helpers.GetFirst(choose.Children)); 198ProjectChooseElement choose = (ProjectChooseElement)Helpers.GetFirst(project.Children); 222ProjectChooseElement choose = (ProjectChooseElement)Helpers.GetFirst(project.Children);
Construction\ProjectExtensionsElement_Tests.cs (6)
36ProjectExtensionsElement extensions = (ProjectExtensionsElement)Helpers.GetFirst(project.Children); 122ProjectExtensionsElement extensions = (ProjectExtensionsElement)Helpers.GetFirst(project.Children); 148ProjectExtensionsElement extensions = (ProjectExtensionsElement)Helpers.GetFirst(project.Children); 174ProjectExtensionsElement extensions = (ProjectExtensionsElement)Helpers.GetFirst(project.Children); 197ProjectExtensionsElement extensions = (ProjectExtensionsElement)Helpers.GetFirst(project.Children); 216ProjectExtensionsElement extensions = (ProjectExtensionsElement)Helpers.GetFirst(project.Children);
Construction\ProjectImportElement_Tests.cs (2)
124ProjectImportElement import = (ProjectImportElement)Helpers.GetFirst(project.Children); 146ProjectImportElement import = (ProjectImportElement)Helpers.GetFirst(project.Children);
Construction\ProjectImportGroupElement_Tests.cs (2)
331ProjectImportGroupElement importGroup = (ProjectImportGroupElement)Helpers.GetFirst(project.Children); 358ProjectImportGroupElement importGroup = (ProjectImportGroupElement)Helpers.GetFirst(project.Children);
Construction\ProjectItemDefinitionElement_Tests.cs (3)
36ProjectItemDefinitionGroupElement itemDefinitionGroup = (ProjectItemDefinitionGroupElement)Helpers.GetFirst(project.Children); 60ProjectItemDefinitionGroupElement itemDefinitionGroup = (ProjectItemDefinitionGroupElement)Helpers.GetFirst(project.Children); 109ProjectItemDefinitionGroupElement itemDefinitionGroup = (ProjectItemDefinitionGroupElement)Helpers.GetFirst(project.Children);
Construction\ProjectItemDefinitionGroupElement_Tests.cs (2)
26Assert.Equal(0, Helpers.Count(project.Children)); 61ProjectItemDefinitionGroupElement itemDefinitionGroup = (ProjectItemDefinitionGroupElement)Helpers.GetFirst(project.Children);
Construction\ProjectItemGroupElement_tests.cs (3)
26Assert.Equal(0, Helpers.Count(project.Children)); 44ProjectItemGroupElement group = (ProjectItemGroupElement)Helpers.GetFirst(project.Children); 66ProjectItemGroupElement group = (ProjectItemGroupElement)Helpers.GetFirst(project.Children);
Construction\ProjectMetadataElement_Tests.cs (1)
1271ProjectItemGroupElement itemGroup = (ProjectItemGroupElement)Helpers.GetFirst(project.Children);
Construction\ProjectOnErrorElement_Tests.cs (7)
51ProjectTargetElement target = (ProjectTargetElement)Helpers.GetFirst(project.Children); 81ProjectTargetElement target = (ProjectTargetElement)Helpers.GetFirst(project.Children); 82ProjectOnErrorElement onError = (ProjectOnErrorElement)Helpers.GetFirst(target.Children); 107ProjectTargetElement target = (ProjectTargetElement)Helpers.GetFirst(project.Children); 108ProjectOnErrorElement onError = (ProjectOnErrorElement)Helpers.GetFirst(target.Children); 303ProjectTargetElement target = (ProjectTargetElement)Helpers.GetFirst(project.Children); 304ProjectOnErrorElement onError = (ProjectOnErrorElement)Helpers.GetFirst(target.Children);
Construction\ProjectOutputElement_Tests.cs (4)
292ProjectTargetElement target = (ProjectTargetElement)Helpers.GetFirst(project.Children); 293ProjectTaskElement task = (ProjectTaskElement)Helpers.GetFirst(target.Children); 315ProjectTargetElement target = (ProjectTargetElement)Helpers.GetFirst(project.Children); 316ProjectTaskElement task = (ProjectTaskElement)Helpers.GetFirst(target.Children);
Construction\ProjectPropertyElement_Tests.cs (2)
49ProjectPropertyGroupElement propertyGroup = (ProjectPropertyGroupElement)Helpers.GetFirst(project.Children); 280ProjectPropertyGroupElement propertyGroup = (ProjectPropertyGroupElement)Helpers.GetFirst(project.Children);
Construction\ProjectPropertyGroupElement_Tests.cs (3)
25Assert.Equal(0, Helpers.Count(project.Children)); 43ProjectPropertyGroupElement group = (ProjectPropertyGroupElement)Helpers.GetFirst(project.Children); 65ProjectPropertyGroupElement group = (ProjectPropertyGroupElement)Helpers.GetFirst(project.Children);
Construction\ProjectRootElement_Tests.cs (2)
108Assert.Equal(0, Helpers.Count(project.Children)); 542Console.WriteLine(@"Children: {0}", Helpers.Count(project.Children));
Construction\ProjectTargetElement_Tests.cs (4)
61ProjectTargetElement target = (ProjectTargetElement)Helpers.GetFirst(project.Children); 63Assert.Equal(0, Helpers.Count(target.Children)); 202var tasks = Helpers.MakeList(target.Children); 385ProjectTargetElement target = (ProjectTargetElement)Helpers.GetFirst(project.Children);
Construction\ProjectTaskElement_Tests.cs (2)
304ProjectTargetElement target = (ProjectTargetElement)Helpers.GetFirst(project.Children); 305return (ProjectTaskElement)Helpers.GetFirst(target.Children);
Construction\ProjectUsingTaskElement_Tests.cs (6)
422ProjectUsingTaskElement usingTask = (ProjectUsingTaskElement)Helpers.GetFirst(project.Children); 446Helpers.GetFirst(project.Children); 467Helpers.GetFirst(project.Children); 484ProjectUsingTaskElement usingTask = (ProjectUsingTaskElement)Helpers.GetFirst(project.Children); 502ProjectUsingTaskElement usingTask = (ProjectUsingTaskElement)Helpers.GetFirst(project.Children); 519ProjectUsingTaskElement usingTask = (ProjectUsingTaskElement)Helpers.GetFirst(project.Children);
Construction\UsingTaskBodyElement_Tests.cs (1)
140ProjectUsingTaskElement usingTask = (ProjectUsingTaskElement)Helpers.GetFirst(project.Children);
Construction\UsingTaskParameterElement_Tests.cs (1)
229ProjectUsingTaskElement usingTask = (ProjectUsingTaskElement)Helpers.GetFirst(project.Children);
Construction\UsingTaskParameterGroup_Tests.cs (1)
141ProjectUsingTaskElement usingTask = (ProjectUsingTaskElement)Helpers.GetFirst(project.Children);