Does anyone know of any existing library that allows testing asynchronous code with OCUnit?
I\'m thinking about something like GHAsyncTestCase but that delivers
AGAsyncTestHelper takes a slightly different approach than AssertEventually since it is evaluating the expression rather than checking the pointer for new results. One advantage of using AGAsyncTestHelper is that it can be used for blocks, delegate-callbacks and whatnot.
WAIT_WHILE(, );
Answering the question
id someObject = nil;
[self doSomethingThatFetchesSomeObjectAsynchronously];
WAIT_WHILE(self.someObject == nil, 1.0);