Monthly Archives: September 2014

I’ve adopted an open source project – cctray-jenkins-transport

We use Jenkins at our work as our build server, and its a nice product I have to say. Moving into our new offices, we had this awesome idea of sticking large flat screens everywhere so each team could show

Tagged with: , ,
Posted in Article

Testing Timers and System.Threading.Timer in particular

I like to extend the unit testing of code to as much as possible including making sure that timers are being instantiated correctly and wired to the correct callback method. Timers should be used within the context of a using()

Tagged with: ,
Posted in Code

Writing some extension methods for FluentAssertion of event handler delegate registrations

In a previous post I demonstrated how to write unit tests for asserting if event handler delegates are registered and deregistered with an event. To improve the readability of the tests, we will now write an extension methods for a

Tagged with: ,
Posted in Code

Asserting event handlers are registered and deregistered correctly in unit tests

Recently I decided that I wanted a unit test to assert that an event handler delegate was being removed correctly in some dispose code. The Event in question was the Elapsed event for a System.Timers.Timer class, and the contrived example

Tagged with: ,
Posted in Code