How can we mock blocks with multiple arguments?

Discussion of the OCMock framework. If you have patches we would prefer you to send them to the mailing list, but attaching them to a topic is possible, too.

How can we mock blocks with multiple arguments?

Postby eric » 17 Sep 2012, 23:39

I'm looking for a way to mock the NSSet objectsWithOptions:passingTest: method, by testing that it does what it is supposed to do.

The block declaration is (BOOL (^)(id obj, BOOL *stop))predicate.

How should we be mocking blocks that take multiple arguments?
eric
 
Posts: 5
Joined: 14 Sep 2012, 22:25

Return to OCMock



cron