Exemplo n.º 1
0
        public void PlateauMustCalculateNextPosition(Plateau sut, RoverPosition currentRoverPosition)
        {
            // Act
            RoverPosition nextRoverPosition = sut.CalculateNextPosition(currentRoverPosition, MovingDirectionEnum.Right);

            // Assert
            Assert.NotNull(nextRoverPosition);
            Assert.Equal(RoverDirectionEnum.East, nextRoverPosition.Direction);
            Assert.Equal(currentRoverPosition.Coordinate.X, nextRoverPosition.Coordinate.X);
            Assert.Equal(currentRoverPosition.Coordinate.Y, nextRoverPosition.Coordinate.Y);
        }