Exemple #1
0
        public bool ChangeWristMovement(ArmVO arm, WristMovement wristMovement)
        {
            if (arm.Elbow != ElbowMovement.StronglyContracted)
            {
                return(false);
            }

            return(true);
        }
Exemple #2
0
        public void NaoDevePermitirMovimentoDoPulso()
        {
            //Assert
            ArmVO arm = new ArmVO()
            {
                Elbow = ElbowMovement.InRest,
                Wrist = WristMovement.InRest
            };

            WristMovement wristMovement = WristMovement.Rotate135Degrees;

            //Act
            var result = _armMovement.ChangeWristMovement(arm, wristMovement);

            //Assert
            Assert.False(result);
        }
Exemple #3
0
        public void DevePermitirMovimentoDoPulso()
        {
            //Arrange
            ArmVO arm = new ArmVO()
            {
                Elbow = ElbowMovement.StronglyContracted,
                Wrist = WristMovement.InRest
            };

            WristMovement wristMovement = WristMovement.Rotate135Degrees;

            //Act
            var result = _armMovement.ChangeWristMovement(arm, wristMovement);

            //Assert
            Assert.True(result);
        }
Exemple #4
0
 private bool IsWristMovement(ArmVO arm, WristMovement wristMovement) => arm.Wrist != wristMovement;