title: unit testing system.timers.timer
body: <p>I've been reading over the questions about unit testing with timers and threading.  I found the SO question about unit testing system.threading.timers, but I need to unit test a system.timers.timer and a wrapper class doesn't seem to work quite as smoothly for this one.</p>
  
  <p>I just need to know how to mock the timer and/or system time in order to unit test against it.  I can't seem to find this anywhere on google.</p>
  
  <p>edit &amp; update:
  It makes sense that if I extract the timer by wrapping it as below, I can generate a timer and use mocking to replace it with a different timer.  The relevant part is then to take that timer that I'm injecting at runtime (the original, not a mock) and test it's elapsed event code.</p>