Exemple #1
0
 public void RoverCanMoveForwardsAndBackwardsFacingWest(
     int startPointX, int startPointY, string movement, int finalPointX)
 {
     InitialiseRoverAt(startPointX, startPointY, CompassPoint.West);
     MoveRover(movement);
     Assert.That(_rover, IsAt.Position(finalPointX, startPointY, CompassPoint.West));
 }
Exemple #2
0
 public void RoverCanTurnLeft(CompassPoint startDirection, CompassPoint endDirection)
 {
     InitialiseRoverAt(0, 0, startDirection);
     MoveRover("l");
     Assert.That(_rover, IsAt.Position(0, 0, endDirection));
 }
Exemple #3
0
 public void RoverRemainsAtStartingPointAndInitialDirectionWhenNotIssuedMoveCommands(
     int x, int y, CompassPoint startDirection)
 {
     InitialiseRoverAt(x, y, startDirection);
     Assert.That(_rover, IsAt.Position(x, y, startDirection));
 }
Exemple #4
0
 public void RoverCanTurnRightAndLeft(CompassPoint startDirection, string movement, CompassPoint endDirection)
 {
     InitialiseRoverAt(0, 0, startDirection);
     MoveRover(movement);
     Assert.That(_rover, IsAt.Position(0, 0, endDirection));
 }