예제 #1
0
 public void Robot_ClockwiseDirection()
 {
     _robot.Place(0, 0, Directions.NORTH);
     _robot.ClockwiseTurn();
     Assert.IsTrue(_robot.ReportPosition().EndsWith(Directions.EAST.ToString()));
     _robot.ClockwiseTurn();
     Assert.IsTrue(_robot.ReportPosition().EndsWith(Directions.SOUTH.ToString()));
     _robot.ClockwiseTurn();
     Assert.IsTrue(_robot.ReportPosition().EndsWith(Directions.WEST.ToString()));
     _robot.ClockwiseTurn();
     Assert.IsTrue(_robot.ReportPosition().EndsWith(Directions.NORTH.ToString()));
     _robot.ClockwiseTurn();
     Assert.IsTrue(_robot.ReportPosition().EndsWith(Directions.EAST.ToString()));
 }