public void the_assertion_succeeds_if_notification_is_raised() { var sut = new NotificationOnAllProperties(); sut.AssertThatChangeNotificationIsRaisedBy(x => x.Int) .When(() => sut.Int = 99); }
public void an_incomplete_assertion_will_fail() { Assert.Throws <Exception>(() => { var sut = new NotificationOnAllProperties(); sut.AssertThatChangeNotificationIsRaisedBy(x => x.Int); }); }