Pedro Gomes
unread,Nov 5, 2009, 11:48:47 AM11/5/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to GHUnit
Hi.
I've just successfully integrated GHUnit on an iPhone Project.
Everything seems to be working as expected, so it's time for me to
actually start writing a few tests.
What's the correct approach to test asynchronous calls that typically
rely on delegates to notify you that the work you requested is done?
An example would be an Asynchronous network request.
A few of the classes I need tested rely on delegate calls, that I need
examined to ensure the test passed.
What happens right now, is that the method that triggers the whole
process is called, but because it returns immediately, the test simply
ends, I need to make sure the test only "ends" when the appropriate
methods on the delegate are called.
Any ideas?
Thank you very much.
Best regards.