Namespace: DeltaEngine.Rendering2D
Assembly: DeltaEngine.Rendering2D (in DeltaEngine.Rendering2D.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Rendering2D.Tests.HierarchyEntity2DTests
2 unit tests call DeltaEngine.Rendering2D.HierarchyEntity2D.Children
Assembly: DeltaEngine.Rendering2D (in DeltaEngine.Rendering2D.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: List HierarchyObject2DImplements
HierarchyObject2D ChildrenRemarks
Examples
[Test] public void NoChildrenGivesNullWhenSearching() { var parentEntity = new MockHierarchyEntity2D(); Assert.IsNull(parentEntity.GetFirstChildOfType<MockHierarchyEntity2D>()); }
[Test] public void SetActiveAlsoSetsForChildren() { var parentEntity = new MockHierarchyEntity2D(); var childEntity = new MockHierarchyEntity2D(); parentEntity.Add(childEntity); parentEntity.IsActive = false; Assert.AreEqual(parentEntity.IsActive, childEntity.IsActive); }
See Also