This post started out as \"What are some common patterns in unit testing multi-threaded code ?\", but I found some other discussions on SO that generally agreed that \"It is
you could use a recorder object that record the order, timings and other useful stuff in each unit test of your scheduler. The test is simple: