public void AutoNotifyPropertyChangesManualPropertiesTest() { SyncSettings sync = new SyncSettings(); bool notified = false; sync.LoadDrives(sync.ShowAllDrives); sync.PropertyChanged += (s, e) => { notified = true; }; sync.Path = null; Assert.IsTrue(notified); }
public void AutoNotifyPropertyChangesAutoPropertiesTest() { SyncSettings sync = new SyncSettings(); bool notified = false; sync.PropertyChanged += (s, e) => { notified = true; }; sync.Size = 10; Assert.IsTrue(notified); notified = false; sync.Status = "Something"; Assert.IsTrue(notified); }