October 23, 2008
Multithreaded Unit Testing Utility for .NETThanks to Tim Ross who sent me this link to some code written by Roy Osherove that helps you write unit tests that involve multiple threads.
I haven't tried it, but from his blog post, I think whatb it does is ensure that your threads all finish before your test does. Or that they all time out at the same time.
It doesn't answer the question of multithreaded code being non-deterministic, so it won't eliminiate the problem of random failures, for example. But it does at least simplify the business of applying multiple threads of execution in the same unit test.
Posted 9 years, 8 months ago on October 23, 2008