public bool ChangeWristMovement(ArmVO arm, WristMovement wristMovement) { if (arm.Elbow != ElbowMovement.StronglyContracted) { return(false); } return(true); }
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); }
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); }
private bool IsWristMovement(ArmVO arm, WristMovement wristMovement) => arm.Wrist != wristMovement;