-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
given only works for ObjC methods #11
Comments
The purpose for that In the current implementation, you're doing what I'd do: create a different macro to call MKTGivenWithLocation. But as a real solution, I think what OCMockito needs is a switch to say, "Use exceptions instead." |
@tomaz OCMockito now relies on OCHamcrest for failure reporting. If you're still interested in a way to use OCMockito in Cedar, I'll tackle it first in hamcrest/OCHamcrest#63. Then add |
Thanks. No rush for that, at least for me - I since reverted to XCTest. |
It looks like Cedar has changed? Closing, feel free to reopen if it's still an issue. |
Default implementation doesn't work in Cedar due to using
self
ingiven
macro definition. Cedar uses plain C functions, soself
isn't available. To compensate, I use this macro:Would be nice to support plain C style of unit tests as well.
The text was updated successfully, but these errors were encountered: