public void DelegatesToTheHardwareToTurnLeft()
        {
            var room = NewMock <RoomStub>();

            new TurnLeftCommand(HardwareRobot, room).Execute();
            HardwareRobot.AssertWasCalled(robot => robot.TurnLeft());
            room.AssertWasCalled(r => r.TrackCleaning(HardwareRobot));
        }
        public void DelegatesToTheHardwareToWalkAnTracksCleaningWithRoom()
        {
            var room = NewMock <RoomStub>();

            new WalkCommand(HardwareRobot, room).Execute();
            HardwareRobot.AssertWasCalled(robot => robot.Walk());
            room.AssertWasCalled(r => r.TrackCleaning(HardwareRobot));
        }
 public void ReturnDelegatesToResetMethodOnHardware()
 {
     new Return(HardwareRobot).Execute();
     HardwareRobot.AssertWasCalled(robot => robot.Reset());
 }