Namespace: DeltaEngine.Input.Tests
Assembly: DeltaEngine.Input.Tests (in DeltaEngine.Input.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Input.Tests (in DeltaEngine.Input.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void DragTouchToCreateRectangles() { MouseDragTriggerTests.DragToCreateRectangles(new TouchDualDragTrigger()); }
[Test, CloseAfterFirstFrame] public void DragTouch() { var touch = Resolve<Touch>() as MockTouch; if (touch == null) return; //ncrunch: no coverage bool isFinished = false; new Command((start, end, done) => isFinished = done).Add(new TouchDualDragTrigger()); SetTouchState(touch, State.Pressing, Vector2D.Zero); SetTouchState(touch, State.Pressed, Vector2D.One); SetTouchState(touch, State.Releasing, Vector2D.One); Assert.IsTrue(isFinished); }
See Also