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