SceneTests AddingControlAddsToListOfControls 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 AddingControlAddsToListOfControls()
Examples

[Test, CloseAfterFirstFrame]
public void AddingControlAddsToListOfControls()
{
    Assert.AreEqual(0, scene.Controls.Count);
    var control = new EmptyControl();
    scene.Add(control);
    Assert.AreEqual(1, scene.Controls.Count);
    Assert.AreEqual(control, scene.Controls[0]);
}
See Also