public void MarkClean() { EditableGetSet root = new EditableGetSet(); root.ManagedStringField = "hi there"; root.FieldBackedString = "hi there"; Assert.IsTrue(root.IsDirty, "Root should be dirty"); root.MarkClean(); Assert.IsFalse(root.IsDirty, "Root should not be dirty"); }
public void MarkClean() { IDataPortal <EditableGetSet> dataPortal = _testDIContext.CreateDataPortal <EditableGetSet>(); EditableGetSet root = EditableGetSet.GetObject(dataPortal); root.ManagedStringField = "hi there"; root.FieldBackedString = "hi there"; Assert.IsTrue(root.IsDirty, "Root should be dirty"); root.MarkClean(); Assert.IsFalse(root.IsDirty, "Root should not be dirty"); }