예제 #1
0
 public void NPC_ShouldNotifyOn_correctUsage()
 {
     var item = new PropertyChanger();
     Assert.DoesNotThrow(() =>
         item.ShouldNotifyOn(m => m.Property1).When(m => m.Property1 = 5)
         );
 }
예제 #2
0
 public void NPC_ShouldNotifyOn_incorrectUsage()
 {
     var item = new PropertyChanger();
     Assert.Throws<Assertion.Exceptions.AssertionException>(() => item.ShouldNotifyOn(m => m.Property1).When(m => m.Property2 = 5));
 }