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

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