public void RevertShouldRestoreStateInDifferentPositions(int position)
        {
            state.CurrentPosition = position;
            command = new InsertStringCommand("1");
            var oldState    = new ControllerState(state);
            var applyResult = command.Apply(state);

            applyResult.Should().BeTrue();

            var result = command.Revert(state);

            result.Should().BeTrue();
            state.Should().Be(oldState);
        }
        public void RevertShouldRestoreStateWithDifferentLength(string insertString)
        {
            var insertPosition = 3;

            state.CurrentPosition = insertPosition;
            command = new InsertStringCommand(insertString);
            var oldState    = new ControllerState(state);
            var applyResult = command.Apply(state);

            applyResult.Should().BeTrue();

            var result = command.Revert(state);

            result.Should().BeTrue();
            state.Should().Be(oldState);
        }