Negates the expectation. Returns an ExpectNot.
Checks that received.isClose(expected, maxRelDiff, maxAbsDiff) and throws a FailingExpectationException otherwise.
Checks that received is expected and throws a FailingExpectationException otherwise.
Checks that received is a TExpected or a sub-type of it. Throws a FailingExpectationException if received cannot be cast to TExpected or if received is null.
Checks that received == expected and throws FailingExpectationException otherwise.
Checks that predicate(received) returns true and throws a FailingExpectationException otherwise.
Checks that predicate(received) returns true for all predicates and throws a FailingExpectationException otherwise.
Checks that predicate(received) returns true for at least one of the given predicates and throws a FailingExpectationException otherwise.
Calls received and catches any exceptions thrown by it. There are three possible outcomes:
Wrapper whose methods are expectations.