I'm trying to write some test cases for my iOS app using XCode 5 and the respective test templates. My app uses IAPs which I can't test in Simulator - but I want to be able to run tests on Simulator (I do have devices, but that's beside the point for me).
Pretend I have this:
// IAPController.m
-(void)aFunction:(NSObject*)aParam
{
// do something
}
Note that aFunction is not declared in IAPController.h.
How can I call this function regardless of its "anonymous" nature in my testcase (which imports IAPController.h)? I mean I know the function is there, and I know Obj-C doesn't really support private functions, but still (with ARC...) it's basically not allowing me to. I was trying to utilize NSInvocation, is this the right direction?