public void RotateRightWristToTheRightDenyBecauseElbowIsntCollapsedTest()
        {
            //Arrange
            creator = new MockCreatorRobot();
            MockRobot robot = ((MockRobot)creator.MakeARobot());

            //Action
            var result = robot.RightWristRotateToTheRight();

            //Assert
            result.IsFailure.ShouldBeTrue();
            result.Failure.ShouldBeOfType <DeniedWristRotateException>();
            robot.RightWristDirection.ShouldBe(0);
        }
        public void RotateRightWristToTheRightTest()
        {
            //Arrange
            creator = new MockCreatorRobot();
            MockRobot robot = ((MockRobot)creator
                               .MakeARobot())
                              .WithRightElbowCollapsed();

            //Action
            var result = robot.RightWristRotateToTheRight();

            //Assert
            result.IsSuccess.ShouldBeTrue();
            result.Success.ShouldBe(-45);
            robot.RightWristDirection.ShouldBe(-45);
        }