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)); }
public void RoverCanTurnLeft(CompassPoint startDirection, CompassPoint endDirection) { InitialiseRoverAt(0, 0, startDirection); MoveRover("l"); Assert.That(_rover, IsAt.Position(0, 0, endDirection)); }
public void RoverRemainsAtStartingPointAndInitialDirectionWhenNotIssuedMoveCommands( int x, int y, CompassPoint startDirection) { InitialiseRoverAt(x, y, startDirection); Assert.That(_rover, IsAt.Position(x, y, startDirection)); }
public void RoverCanTurnRightAndLeft(CompassPoint startDirection, string movement, CompassPoint endDirection) { InitialiseRoverAt(0, 0, startDirection); MoveRover(movement); Assert.That(_rover, IsAt.Position(0, 0, endDirection)); }