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