public void EditableObjectTest_CancelEditRollbackes() { EditableObjectClass editable = new EditableObjectClass(); editable.BeginEdit(); editable.IntP = 5; editable.StringP = "a"; editable.Edit(1, "b"); editable.CancelEdit(); Assert.AreEqual(0, editable.IntP); Assert.IsNull(editable.StringP); }