At my day job I\'ve been spoiled with Mockito\'s never() verification, which can confirm that a mock method is never called.
Is there some way to accomplish the same thi
You may also find it necessary to ensure a method is never being called on an object you are partially mocking.
I created a macro for this:
#define andDoFail andDo:^(NSInvocation *invocation) { STFail(@"Should not have called this method!"); }
I use it like this:
[[[_myPartialMock stub] andDoFail] unexpectedMethod];