throwsTestFailure function

Matcher throwsTestFailure(
  1. dynamic message
)

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));