isTestFailure function
Returns a matcher that matches a TestFailure with the given message
.
message
can be a string or a Matcher.
Implementation
Matcher isTestFailure(message) => const TypeMatcher<TestFailure>()
.having((e) => e.message, 'message', message);