moveAxisPitch() public method

public moveAxisPitch ( enumUpDown _eudDirection ) : void
_eudDirection enumUpDown
return void
        public void moveAxisPitch_ReturnsFalse_CastExceptions()
        {
            // Setup
            IRobot irMock = MockRepository.GenerateMock<IRobot>();
            mcTestObj = new ManualController();
            mcTestObj.RobotConnection = irMock;
            irMock.Stub(t => t.moveWristPitch(Arg<int>.Is.Anything)).Return(false);

            // Verify
            Assert.Catch(() => mcTestObj.moveAxisPitch(enumUpDown.MANUAL_MOVE_UP));
        }
        public void moveAxisPitch_CalledWithArgUp_CallsRobotmoveWristPitchWithPositiveSpeedValue()
        {
            // Setup
            IRobot irMock = MockRepository.GenerateMock<IRobot>();
            mcTestObj = new ManualController();
            mcTestObj.RobotConnection = irMock;
            mcTestObj.Speed = 50;
            irMock.Stub(t => t.moveWristPitch(Arg<int>.Is.Anything)).Return(true);

            // Test
            mcTestObj.moveAxisPitch(enumUpDown.MANUAL_MOVE_UP);

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