How to unit-test asynchronous operations?(nesteruk.org)
submitted by
dmitri(408) 2 years, 9 months ago
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.
|category: Unit Testing
|Views: 56
tags:
Testing another
Everyones tags:
Your Tags: