Namespace: DeltaEngine.Input.Windows.Tests
Assembly: DeltaEngine.Input.Windows.Tests (in DeltaEngine.Input.Windows.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Input.Windows.Tests (in DeltaEngine.Input.Windows.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, CloseAfterFirstFrame, Ignore] // This moves the mouse every time NCrunch runs! public void GetReturnsWhatWasSet() { var positionTranslator = new CursorPositionTranslater(Resolve<Window>()); var setPoint = new Vector2D(0.1f, 0.2f); positionTranslator.SetCursorPosition(setPoint); var getPoint = positionTranslator.GetCursorPosition(); Assert.AreEqual(setPoint.X, getPoint.X, 0.1f); Assert.AreEqual(setPoint.Y, getPoint.Y, 0.1f); }
See Also