Unit Testing Timer Based Code
Code that relies on timers is tricky to unit test. You have to check the functionality of your code and ensure there is the correct synchronisation between the test and the timer thread. Unless special measures are taken, exceptions thrown...