• November 2016
    M T W T F S S
     123456
    78910111213
    14151617181920
    21222324252627
    282930  
  • Latest Posts

  • Latest Comments

  • Archives

Archive for November, 2016


How can I unit test unsubscribing from an event? (C#)

I’ve seen some strange bugs that occur when you don’t properly unsubscribe from events. But it seems I’m always stuck when it comes to unit testing that. Well, I use Moq for most of my mocking and there are some techniques you can use for testing that your subscribed, namely by Raise(ing) the event in […]