throwsTestFailure function
Returns a matcher that matches a callback or Future that throws a
TestFailure with the given message
.
message
can be a string or a Matcher.
Implementation
Matcher throwsTestFailure(message) => throwsA(isTestFailure(message));