Example #1
0
        public void CanRaiseWithFailingPropertyGetter()
        {
            var sut = new LambdaRelatedTests.AnObjectThatCanCrashWithPropertyGet(0);

            Check.ThatCode(() => sut.BeastBreaker).Throws <DivideByZeroException>();

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

            // obsolete for coverage
            Check.That(() => sut.BeastBreaker).Throws<DivideByZeroException>();
        }