public void RaisePropertyChangedEvent_RaiseEvent_ShouldRaiseEvent() { var test = new TestNotify(); var raised = false; test.PropertyChanged += (sender, e) => { raised = true; }; test.RaisesPropertyChanged(); Assert.IsTrue(raised); }
public void RaisePropertyChangedEvent_PropertyNameInPropertyChangedEventArgs_ShouldBeTheSameAsProperty() { var test = new TestNotify(); var equal = false; test.PropertyChanged += (sender, e) => { equal = (e.PropertyName == PropertyName); }; test.RaisesPropertyChanged(); Assert.IsTrue(equal); }