0
kicks
How to unit-test asynchronous operations?
I recently had to write unit tests for asynchronous operations – specifically, files being downloaded off the internet. But how do you write a test which checks the result of an async operation? You can’t just subscribe to some XxxCompleted event and do Asserts there because your test runner would have exited the test method by then.