SceneTests AddingListOfControl Method Delta Engine Documentation

Namespace: DeltaEngine.Scenes.Tests
Assembly: DeltaEngine.Scenes.Tests (in DeltaEngine.Scenes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void AddingListOfControl()
Examples

[Test, CloseAfterFirstFrame]
public void AddingListOfControl()
{
    Assert.AreEqual(0, scene.Controls.Count);
    var controls = new List<EmptyControl> { new EmptyControl(), new EmptyControl() };
    scene.Add(controls);
    Assert.AreEqual(2, scene.Controls.Count);
}
See Also