public void ResetDirty() { if (DirtyObserver != null) { DirtyObserver.Reset(); } }
public void FirstTest() { DataContainerTest1 container = new DataContainerTest1(); DirtyObserver observer = new DirtyObserver(container); container.Value1 = 1; Assert.That(observer.Dirty == false); container.Value2 = 1; Assert.That(observer.Dirty == true); observer.Reset(); container.TestObject = null; Assert.That(observer.Dirty == true); observer.Reset(); container.TestObject = "test"; Assert.That(observer.Dirty == true); observer.Reset(); container.TestObject = null; Assert.That(observer.Dirty == true); }