Namespace: DeltaEngine.Scenes.Tests.Controls
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 DisabledControlDoesNotRespondToClick() { if (!IsMockResolver) return; //ncrunch: no coverage button.IsEnabled = false; bool clicked = false; button.Clicked += () => clicked = true; PressAndReleaseMouse(new Vector2D(0.53f, 0.52f), new Vector2D(0.53f, 0.52f)); Assert.IsFalse(clicked); Assert.IsFalse(button.State.IsInside); Assert.AreEqual(Vector2D.Zero, button.State.RelativePointerPosition); }
See Also