Calls received and catches any exceptions thrown by it. There are three possible outcomes:
- received throws a TExpected or one of its sub-types. The expectation passes.
- received doesn't throw a TExpected, but does throw something else. A FailingExpectationException is thrown.
- received doesn't throw anything. A FailingExpectationException is thrown.
See Implementation
Calls received and catches any exceptions thrown by it. There are three possible outcomes:
- received throws a TExpected or one of its sub-types. The expectation passes.
- received doesn't throw a TExpected, but does throw something else. A FailingExpectationException is thrown.
- received doesn't throw anything. A FailingExpectationException is thrown.