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