public void RegistersChangeNotificationsOfDefaultValues() { var model = new ModelWithObservableCollection(); model.Collection.Add(4); Assert.IsTrue(model.HasCollectionChanged); }
public void AllowsRegistrationOfObservableCollection() { var model = new ModelWithObservableCollection(); model.Collection = new ObservableCollection <int>(new List <int>() { 1, 2, 3 }); model.Collection.Add(4); Assert.IsTrue(model.HasCollectionChanged); }