Consider the following code
OCMockObject *mock = [OCMockObject mockForClass:[NSObject class]];
[[[mock expect] andReturnValue:OCMOCK_VALUE((BOOL){YES})] isEqual:[OCMArg any]];
[mock isEqual:[NSObject new]];
[mock verify];
Can someone, please, tell me why this fails with
test failure: -[NSObject_tests testIsEqualIsCalled] failed: OCMockObject[NSObject]: expected method was not invoked: (null)
This makes literally no sense. I tried using andReturn:
instead of andReturnValue:
and still nothing.