SnakeGameTests MoveByTouchPositionLeft Method Delta Engine Documentation

Namespace: Snake.Tests
Assembly: Snake.Tests (in Snake.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void MoveByTouchPositionLeft()
Examples

[Test, CloseAfterFirstFrame]
public void MoveByTouchPositionLeft()
{
    var game = new Game(Resolve<Window>());
    game.StartGame();
    game.MoveAccordingToTouchPosition(new Vector2D(-1, 0.5f));
    Assert.AreEqual(new Vector2D(-(1.0f / 25.0f), 0), game.Snake.Get<Body>().Direction);
}
See Also