Exemplo n.º 1
0
        private static PropertyDirtyTracker CreateDirtyTracker(TestViewModel testViewModel)
        {
            var tracker = new PropertyDirtyTracker();

            tracker.SetParent(testViewModel);
            return(tracker);
        }
Exemplo n.º 2
0
 private static void AssertDirty(PropertyDirtyTracker tracker, string name)
 {
     Assert.That(tracker.IsDirty);
     Assert.That(tracker.DirtyItems.Cast <string>().SequenceEqual(new[] { name }));
 }
Exemplo n.º 3
0
 private static void AssertNotDirty(PropertyDirtyTracker tracker)
 {
     Assert.That(!tracker.IsDirty);
     Assert.That(!tracker.DirtyItems.Cast <string>().Any());
 }