moveCoordPitch() public method

public moveCoordPitch ( enumIncDec _eidIncOrDec ) : void
_eidIncOrDec enumIncDec
return void
        public void moveCoordPitch_CalledWithArgIncreasing_CallsRobotmoveByPitch_ReturnFalse_ExpectException()
        {
            // Setup
            IRobot irMock = MockRepository.GenerateMock<IRobot>();
            mcTestObj = new ManualController();
            mcTestObj.RobotConnection = irMock;
            irMock.Stub(t => t.moveByPitch(Arg<int>.Is.Anything)).Return(false);

            // Test
            Assert.Catch(() => mcTestObj.moveCoordPitch(enumIncDec.MANUAL_MOVE_INC));
        }
        public void moveCoordPitch_CalledWithArgIncreasing_CallsRobotmoveByPitchWithPositiveSpeedValue()
        {
            // Setup
            IRobot irMock = MockRepository.GenerateMock<IRobot>();
            mcTestObj = new ManualController();
            mcTestObj.RobotConnection = irMock;
            mcTestObj.Speed = 50;
            irMock.Stub(t => t.moveByPitch(Arg<int>.Is.Anything)).Return(true);

            // Test
            mcTestObj.moveCoordPitch(enumIncDec.MANUAL_MOVE_INC);

            // Verify
            irMock.AssertWasCalled(t => t.moveByPitch(mcTestObj.Speed));
        }