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, CloseAfterFirstFrame] public void IfDistanceIsToSmallNothingWillHappen() { if (touch == null) return; //ncrunch: no coverage bool isFinished = false; new Command((start, end, done) => isFinished = done).Add(new TouchDragTrigger()); SetTouchState(State.Pressing, Vector2D.Zero); SetTouchState(State.Pressed, Vector2D.Zero); SetTouchState(State.Releasing, Vector2D.Zero); Assert.False(isFinished); }
See Also