public void TestUndoEdit() { txtBox.Text = NEW_VAR_NAME; editVarNameCommand.NewVarName = NEW_VAR_NAME; Assert.AreNotEqual(editVarNameCommand.CurrentVarName, txtBox.Text); editVarNameCommand.Undo(); Assert.AreEqual(editVarNameCommand.CurrentVarName, txtBox.Text); }