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

[Test, CloseAfterFirstFrame]
public void AddingControlToActiveSceneActivatesIt()
{
    var label = new Sprite(material, Rectangle.One);
    scene.Show();
    scene.Add(label);
    Assert.IsTrue(label.IsActive);
}
See Also