moveAxisShoulder() public method

public moveAxisShoulder ( enumLeftRight _elrDirection ) : void
_elrDirection enumLeftRight
return void
        public void moveAxisShoulder_ReturnsFalse_CastExceptions()
        {
            // Setup
            IRobot irMock = MockRepository.GenerateMock<IRobot>();
            mcTestObj = new ManualController();
            mcTestObj.RobotConnection = irMock;
            irMock.Stub(t => t.moveShoulder(Arg<int>.Is.Anything)).Return(false);

            // Verify
            Assert.Catch(() => mcTestObj.moveAxisShoulder(enumLeftRight.MANUAL_MOVE_LEFT));
        }
        public void moveAxisShoulder_CalledWithArgRight_CallsRobotmoveShoulderWithPositiveSpeedValue()
        {
            // Setup
            IRobot irMock = MockRepository.GenerateMock<IRobot>();
            mcTestObj = new ManualController();
            mcTestObj.RobotConnection = irMock;
            mcTestObj.Speed = 50;
            irMock.Stub(t => t.moveShoulder(Arg<int>.Is.Anything)).Return(true);

            // Test
            mcTestObj.moveAxisShoulder(enumLeftRight.MANUAL_MOVE_RIGHT);

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