Пример #1
0
        public void TestSnakeSelfCollisionFalse()
        {
            Snake snake = new Snake(snakeInfo);

            snake.AddToTail(new Point {
                x = snake.GetHead().x, y = snake.GetHead().y + 1
            });
            snake.AddToTail(new Point {
                x = snake.GetHead().x, y = snake.GetHead().y + 2
            });
            Assert.IsFalse(snake.IsCollisionWithHead());
        }