public void NoPropertyChanged_DontNotifyPropertyChanged() { var targetObject = new TestClass(); var intercepted = PropertyChangedInterceptor.Get(targetObject); intercepted.MonitorEvents(); intercepted.ShouldNotRaisePropertyChangeFor(x => x.FirstProperty); }
public void PropertyIsNonVirtual_DontNotifyPropertyChanged() { var targetObject = new TestClass(); var intercepted = PropertyChangedInterceptor.Get(targetObject); intercepted.MonitorEvents(); intercepted.SecondProperty = "Test"; intercepted.ShouldNotRaisePropertyChangeFor(x => x.SecondProperty); }