Пример #1
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));
 }
Пример #2
0
 public void NPC_ShouldNotNotifyOn_correctUsage()
 {
     var item = new PropertyChanger();
     Assert.DoesNotThrow(() => item.ShouldNotNotifyOn(m => m.Property1).When(m => m.Property2 = 5));
 }