public void InTest_PropertyValueChange_CallsBoth() { _changedProperty = new NotificationData(); _changingProperty = new NotificationData(); //setup CheckNotificationInTest not = new CheckNotificationInTest(); not.PropertyChanged += new PropertyChangedEventHandler(ChangedNameLocal); not.PropertyChanging += new PropertyChangingEventHandler(ChangingNameLocal); //act not.Name = "Test"; //assert Assert.That(_changingProperty.PropertyName, new EqualConstraint("Name")); Assert.That(_changedProperty.PropertyName, new EqualConstraint("Name")); Assert.That(_changingProperty.PropertyValue, new EqualConstraint(null)); Assert.That(_changedProperty.PropertyValue, new EqualConstraint("Test")); Assert.That(_changingProperty.TimeOfCall, new LessThanConstraint(_changedProperty.TimeOfCall), "First changing must be called, afterwards changed"); }