示例#1
0
        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");
        }
示例#2
0
        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");
        }