Namespace: DeltaEngine.Scenes
Assembly: DeltaEngine.Scenes (in DeltaEngine.Scenes.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Scenes.Tests.SceneTests
2 unit tests call DeltaEngine.Scenes.Scene.ToBackground
Assembly: DeltaEngine.Scenes (in DeltaEngine.Scenes.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Remarks
Examples
[Test, CloseAfterFirstFrame] public void ControlsDoNotRespondToInputWhenInBackground() { if (!IsMockResolver) return; //ncrunch: no coverage var button = CreateButton(); scene.Add(button); scene.ToBackground(); SetMouseState(State.Pressing, Vector2D.Half); Assert.AreEqual(NormalColor, button.Color); }
[Test, CloseAfterFirstFrame] public void ControlsRespondToInputWhenBroughtBackToForeground() { if (!IsMockResolver) return; //ncrunch: no coverage var button = CreateButton(); scene.Add(button); scene.ToBackground(); scene.ToForeground(); SetMouseState(State.Pressing, Vector2D.Half); Assert.AreEqual(PressedColor, button.Color); }
See Also