And how do I do it, since obviously there are a lot of async methods, and no way (that I know of) to check them in a unit test.
For example:
- (void) testSomeTest {
// things
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(helperTestSomeTest:)
name:connectionFinished
object:nil];
// connect to server
}
- (void) helperTestSomeTest:(NSNotification)notification {
STAssertWhatever(whathever, nil); // not working
}