The exception message provided when attempting to mock an NSObject method (like hash)
with a macro is confusing. The updated text is much clearer as to possible causes.
Not sure whether you noticed, but I made the corresponding change for the verify macro. Arguably, the fact that this was needed shows that there's some unneccesary duplication in the original code.
The exception message provided when attempting to mock an NSObject method (like hash) with a macro is confusing. The updated text is much clearer as to possible causes.