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 BeginClickInside() { if (!IsMockResolver) return; //ncrunch: no coverage SetMouseState(State.Pressing, Vector2D.Half); Assert.IsTrue(button.State.IsPressed); }
[Test, CloseAfterFirstFrame] public void BeginClickInsideAndEndOutside() { if (!IsMockResolver) return; //ncrunch: no coverage bool clicked = false; button.Clicked += () => clicked = true; PressAndReleaseMouse(Vector2D.Half, Vector2D.Zero); Assert.IsFalse(clicked); Assert.IsTrue(button.State.IsPressed); }
See Also