verifyToStringMatches function
Verifies (using expect
) that the result of calling toString()
on the
given object matches the provided matcher.
Arguments
Object object
- the object being tested.Matcher matcher
- the matcher used to verify the result
Implementation
void verifyToStringMatches(Object object, Matcher matcher) {
expect(object.toString(), matcher);
}