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