Example #1
0
 public void Robot_CounterclockwiseDirection()
 {
     _robot.Place(0, 0, Directions.NORTH);
     _robot.CounterClockwiseTurn();
     Assert.IsTrue(_robot.ReportPosition().EndsWith(Directions.WEST.ToString()));
     _robot.CounterClockwiseTurn();
     Assert.IsTrue(_robot.ReportPosition().EndsWith(Directions.SOUTH.ToString()));
     _robot.CounterClockwiseTurn();
     Assert.IsTrue(_robot.ReportPosition().EndsWith(Directions.EAST.ToString()));
     _robot.CounterClockwiseTurn();
     Assert.IsTrue(_robot.ReportPosition().EndsWith(Directions.NORTH.ToString()));
     _robot.CounterClockwiseTurn();
     Assert.IsTrue(_robot.ReportPosition().EndsWith(Directions.WEST.ToString()));
 }