title: Mocking a C# timer with Moq
body: <p>I'm attempting to create a WPF MVVM View Model that has a dependency injected <code>System.Timing.Timer</code>, and wish to test the view model with Moq.</p>
  
  <p>I wrote a thin wrapper around the <code>Timer</code> class that has a interface <code>ITimer</code>, but am unsure of the best way to really test the timer's contribution to the class.  Is there a good way to 'force' a mock elapsed event? Does somebody else have a better technique?</p>