예제 #1
0
        public void SettingPropertyWithDependentPropertyRaisesPropertyChangeForPropertyAndDependent()
        {
            var x = new NotificationTestClass();

            x.MonitorEvents();

            x.Second = "FooBar";

            x.ShouldRaisePropertyChangeFor(v => v.Second);
            x.ShouldRaisePropertyChangeFor(v => v.SecondToUpper);
        }
예제 #2
0
        public void RaisePropertyChangeWithLambdaWorks()
        {
            var x = new NotificationTestClass();

            x.MonitorEvents();

            x.RaiseWithLambda();

            x.ShouldRaisePropertyChangeFor(v => v.Second);
            x.ShouldRaisePropertyChangeFor(v => v.SecondToUpper);
        }
예제 #3
0
        public void SettingPropertyRaisesPropertyChange()
        {
            var x = new NotificationTestClass();

            x.MonitorEvents();

            x.First = "FooBar";

            x.ShouldRaisePropertyChangeFor(v => v.First);
        }