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

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

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

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

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