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