Exemple #1
0
 private void GivenTheRobotIsFacing(int hardwareDirection)
 {
     HardwareRobot.Stub(robot => robot.FaceTo).Return(hardwareDirection);
 }
 public void IsAnObstacleNextCommandIsTurnRight()
 {
     GivenTheCleaningIsUnderway();
     HardwareRobot.Stub(robot => robot.IsObstacle()).Return(true);
     ThenTheNextCommandIs <TurnRightCommand>();
 }