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 DisposeSnake() { var snake = new Snake(gridSize, Color.Green) { IsActive = false }; Assert.AreEqual(2, snake.Get<Body>().BodyParts.Count); snake.Dispose(); Assert.Throws<Entity.ComponentNotFound>(() => snake.Get<Body>()); }
See Also