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

[Test, CloseAfterFirstFrame]
public void HidingSceneHidesControls()
{
    var label = new Sprite(material, Rectangle.One) { IsActive = true };
    var control = new EmptyControl { IsActive = true };
    scene.Add(label);
    scene.Add(control);
    scene.Hide();
    scene.Hide();
    Assert.AreEqual(2, scene.Controls.Count);
    Assert.IsFalse(label.IsVisible);
    Assert.IsFalse(control.IsVisible);
}
See Also