示例#1
0
        public void GetResult_ShouldReturnTurtleCurrentTileStatus()
        {
            //Arrange
            var testDirection = Direction.NorthDirection;
            var testTile      = new Tile(0, 1);
            var testTurtle    = new Turtle(testTile, testDirection);
            var tiles         = new Tile[2, 2];

            tiles[testTile.X, testTile.Y] = testTile;
            minefield = new Minefield(mockedMovementFactory.Object, tiles, new Mine[0], new ExitPoint(0, 0), testTurtle);

            //Act
            var result = minefield.GetResult();

            //Assert
            Assert.That(result == testTurtle.Tile.GetStatus());
        }