public void NPC_ShouldNotNotifyOn_incorrectUsage() { var item = new PropertyChanger(); Assert.Throws<Assertion.Exceptions.AssertionException>(() => item.ShouldNotNotifyOn(m => m.Property1).When(m => m.Property1 = 5)); }
public void NPC_ShouldNotNotifyOn_correctUsage() { var item = new PropertyChanger(); Assert.DoesNotThrow(() => item.ShouldNotNotifyOn(m => m.Property1).When(m => m.Property2 = 5)); }