Пример #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>();
        }
Пример #2
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>();
        }