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 RespawnChunkIfCollidingWithSnake() { var game = new Game(Resolve<Window>()); game.StartGame(); game.Chunk.DrawArea = game.Snake.Get<Body>().BodyParts[0].DrawArea; Assert.IsTrue(game.Chunk.IsCollidingWithSnake(game.Snake.Get<Body>().BodyParts)); game.RespawnChunk(); Assert.IsFalse(game.Chunk.IsCollidingWithSnake(game.Snake.Get<Body>().BodyParts)); }
See Also