Category Archives: Unit Testing
Recently I’ve been refactoring some DB access code. Basically unraveling the DB code that is sprinkled throughout the code into a separate layer. Testing this code is challenging and honestly tedious.
Kevin’s comment on my previous post brings up a couple of good points which, as I thought about them, are very closely related. One is the “test-first” approach – writing unit tests prior to the code to be tested. The … Continue reading