Exemple #1
0
 public void TestUndoRedoEdit()
 {
     txtBox.Text = NEW_VAR_NAME;
     editVarNameCommand.NewVarName = NEW_VAR_NAME;
     Assert.AreNotEqual(editVarNameCommand.CurrentVarName, txtBox.Text);
     editVarNameCommand.Undo();
     Assert.AreEqual(editVarNameCommand.CurrentVarName, txtBox.Text);
     editVarNameCommand.Redo();
     Assert.AreNotEqual(editVarNameCommand.CurrentVarName, txtBox.Text);
 }