public void TestValidExecute() { var command = new ChangeBGColorCommand(this.cell, TestColor); command.Execute(); Assert.AreEqual(TestColor, this.cell.BGColor); }
public void TestValidUndo() { const uint originalColor = 0xffffffffU; this.cell.BGColor = originalColor; var command = new ChangeBGColorCommand(this.cell, TestColor); command.Execute(); command.Undo(); Assert.AreEqual(originalColor, this.cell.BGColor); }