Namespace: DeltaEngine.Scenes.Tests
Assembly: DeltaEngine.Scenes.Tests (in DeltaEngine.Scenes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Scenes.Tests (in DeltaEngine.Scenes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, CloseAfterFirstFrame] public void DisposingSceneClearsIt() { var loadedScene = ContentLoader.Load<Scene>("SceneWithAButton"); var button = loadedScene.Controls[0] as Button; loadedScene.Dispose(); Assert.AreEqual(0, loadedScene.Controls.Count); Assert.IsFalse(button.IsActive); }
See Also