public void ChangingAPropertyValueShouldFirePropertyChangedForAllAffectedProperties()
 {
     var testSubject = new _ClassShowingTypicalUsageOfTrackingProperties();
     testSubject.MonitorEvents();
     testSubject.Name = "just changing the property to trigger the event";
     testSubject.ShouldRaisePropertyChangeFor(s => s.Name);
     testSubject.ShouldRaisePropertyChangeFor(s => s.FullName);
 }
Example #2
0
        public void ChangingAPropertyValueShouldFirePropertyChangedForAllAffectedProperties()
        {
            var testSubject = new _ClassShowingTypicalUsageOfTrackingProperties();

            testSubject.MonitorEvents();
            testSubject.Name = "just changing the property to trigger the event";
            testSubject.ShouldRaisePropertyChangeFor(s => s.Name);
            testSubject.ShouldRaisePropertyChangeFor(s => s.FullName);
        }