private void RedoCommand(IInputHandler argsHandler) { if (_document.CanRedo()) { _document.Redo(); } else { _out.WriteLine("Can't Redo"); } }
public void Execute(string commandData, TextWriter textWriter) { if (_document.CanRedo()) { _document.Redo(); } else { textWriter.WriteLine(Constants.IMPOSSIBLE_TO_REDO); } }
public void CanRedo_WithEmptyHistory_ShouldReturnFalse() { Assert.IsFalse(_document.CanRedo()); }