Re: NSOperation with unit test

2011-03-22 Thread Heath Borders
Your NSOperation is probably running on a background thread managed by the NSOperationQueue. Your test needs to wait until the NSOperationQueue has processed all its tasks. -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com On Tue, Mar 22, 2011 at 10:3

NSOperation with unit test

2011-03-22 Thread Shane
Hi, I am trying to write a unit test for a class that inherits from NSOperation. And I've implemented this class just as I did in my application (which works) and the test case is running, but when the 'addOperation:myClass' on the NSOperationQueue is called within the test method, I don't see tha