public void TestValidExecute() { var command = new ChangeTextCommand(this.cell, TestString); command.Execute(); Assert.AreEqual(TestString, this.cell.Text); }
public void TestValidUndo() { const string originalText = "original string"; this.cell.Text = originalText; var command = new ChangeTextCommand(this.cell, TestString); command.Execute(); command.Undo(); Assert.AreEqual(originalText, this.cell.Text); }