public void CanRaiseWithFailingPropertyGetter() { var sut = new AnObjectThatCanCrashWithPropertyGet(0); Check.ThatCode(() => sut.BeastBreaker).Throws <DivideByZeroException>(); // obsolete for coverage Check.That(() => sut.BeastBreaker).Throws <DivideByZeroException>(); }
public void CanRaiseWithFailingPropertyGetter() { var sut = new AnObjectThatCanCrashWithPropertyGet(0); Check.ThatCode(() => sut.BeastBreaker).Throws<DivideByZeroException>(); }