예제 #1
0
        public void TurtleMove_TurtleMovesInBoard()
        {
            Board  gameBoard = TestHelper.GetEmptyBoard(1, 3);
            Turtle turtle    = new Turtle(Direction.North, gameBoard);

            gameBoard.AddGameObject(0, 2, turtle);

            turtle.Move();
            Assert.True(new Coordinate(0, 1).IsSame(turtle.GetCurrentCoordinate()));

            turtle.Move();
            Assert.True(new Coordinate(0, 0).IsSame(turtle.GetCurrentCoordinate()));
        }