Namespace: Snake.Tests
Assembly: Snake.Tests (in Snake.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: Snake.Tests (in Snake.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, CloseAfterFirstFrame] public void SnakeCollidingWithItselfWillRestart() { var game = new Game(Resolve<Window>()); game.StartGame(); game.Snake.Get<Body>().AddSnakeBody(); game.Snake.Get<Body>().AddSnakeBody(); game.Snake.Get<Body>().AddSnakeBody(); game.MoveLeft(); AdvanceTimeAndUpdateEntities(moveSpeed); game.MoveDown(); AdvanceTimeAndUpdateEntities(moveSpeed); game.MoveRight(); AdvanceTimeAndUpdateEntities(moveSpeed); }
See Also