Using C# anonymous types to assert complex results in your unit tests

Does this sounds familiar to you: You come to work early(ish) in the morning – ready to apply a new technology you’ve just learnt about – just to find out that you can’t. Your frustration grows as you understand that in order to use this “new and shiny” some adjustments must be made and what … Continue reading Using C# anonymous types to assert complex results in your unit tests

Unit testing multi threaded code–Timers

Writing unit tests for multi-threaded is not simple and could even be impossible for some scenarios – how could you test that an asynchronous method was not called?Since most unit testing examples tend to be rather trivial I’ve decided to try and explain other more complex scenarios – preferably without using any calculator examples. The … Continue reading Unit testing multi threaded code–Timers