Ejemplo n.º 1
0
 public void NPC_ShouldNotifyOn_correctUsage()
 {
     var item = new PropertyChanger();
     Assert.DoesNotThrow(() =>
         item.ShouldNotifyOn(m => m.Property1).When(m => m.Property1 = 5)
         );
 }
Ejemplo n.º 2
0
 public void NPC_ShouldNotNotifyOn_incorrectUsage()
 {
     var item = new PropertyChanger();
     Assert.Throws<Assertion.Exceptions.AssertionException>(() => item.ShouldNotNotifyOn(m => m.Property1).When(m => m.Property1 = 5));
 }