verifyToString function
Verifies (using expect
) that the result of calling toString()
on the
given object is equal to the expected value.
Arguments
Object object
- the object being tested.String string
- the expected string value.
Implementation
void verifyToString(Object object, String string) {
verifyToStringMatches(object, equals(string));
}