public void MoveOnePositionForEachCompassDirection(string expectedPosition, string commands) { var startNavigate = new Navigate(Compass.N, 1, 1); var marsRover = new MarsRover(startNavigate); var position = marsRover.Execute(commands); Assert.Equal(expectedPosition, position); }
public void MoveDiagonalIfYouAreOnDirectionNorthWestEastSouthAndRobotTurnLeftOrRightAndMove(string expectedPosition, string commands) { var startNavigate = new Navigate(Compass.N, 1, 1); var marsRover = new MarsRover(startNavigate); var position = marsRover.Execute(commands); Assert.Equal(expectedPosition, position); }
public MarsRoverShould() { _marsRover = new MarsRover(); }