public void SettingPropertyWithDependentPropertyRaisesPropertyChangeForPropertyAndDependent() { var x = new NotificationTestClass(); x.MonitorEvents(); x.Second = "FooBar"; x.ShouldRaisePropertyChangeFor(v => v.Second); x.ShouldRaisePropertyChangeFor(v => v.SecondToUpper); }
public void RaisePropertyChangeWithLambdaWorks() { var x = new NotificationTestClass(); x.MonitorEvents(); x.RaiseWithLambda(); x.ShouldRaisePropertyChangeFor(v => v.Second); x.ShouldRaisePropertyChangeFor(v => v.SecondToUpper); }
public void SettingPropertyRaisesPropertyChange() { var x = new NotificationTestClass(); x.MonitorEvents(); x.First = "FooBar"; x.ShouldRaisePropertyChangeFor(v => v.First); }