Пример #1
0
        public void When_the_exception_is_not_a_validation_exception()
        {
            _context.Exception = new ExpectedException();

            _filter.OnException(_context);

            _context.ShouldSatisfyAllConditions(
                () => _context.Exception.ShouldBeOfType <ExpectedException>(),
                () => _context.ExceptionHandled.ShouldBeFalse(),
                () => _context.Result.ShouldBeOfType <OkResult>()
                );
        }