示例#1
0
        public void the_assertion_succeeds_if_notification_is_raised()
        {
            var sut = new NotificationOnAllProperties();

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