Example #1
0
        public void MarkAsClean_Test()
        {
            SomeInt        = new Property <PropertyHostMethodsTests, int>(this);
            SomeInt.Value += 1;
            var result = PropertyHostMethods.IsDirty(this);

            Assert.IsTrue(result);

            PropertyHostMethods.MarkAsClean(this);
            result = PropertyHostMethods.IsDirty(this);
            Assert.IsFalse(result);
        }
Example #2
0
 /// <summary>
 /// Uses reflection to find all Properties and mark them as clean (call Property.MarkAsClean())
 /// </summary>
 public void MarkAsClean()
 {
     PropertyHostMethods.MarkAsClean(this);
 }