moveAxisGripper() публичный Метод

public moveAxisGripper ( enumCloseOpen _ecoGripper ) : void
_ecoGripper enumCloseOpen
Результат void
        public void moveAxisGripper_ReturnsFalseOnCloseGripper_CastExceptions()
        {
            // Setup
            IRobot irMock = MockRepository.GenerateMock<IRobot>();
            mcTestObj = new ManualController();
            mcTestObj.RobotConnection = irMock;
            irMock.Stub(t => t.closeGripper()).Return(false);

            // Verify
            Assert.Catch(() => mcTestObj.moveAxisGripper(enumCloseOpen.MANUAL_CLOSE));
        }
        public void moveAxisGripper_CalledWithArgOpen_CallsRobotopenGripper()
        {
            // Setup
            IRobot irMock = MockRepository.GenerateMock<IRobot>();
            mcTestObj = new ManualController();
            mcTestObj.RobotConnection = irMock;
            irMock.Stub(t => t.openGripper()).Return(true);

            // Test
            mcTestObj.moveAxisGripper(enumCloseOpen.MANUAL_OPEN);

            // Verify
            irMock.AssertWasCalled(t => t.openGripper());
        }