C# ASP.NET SQL SERVER
  • Thu
    28
    Aug 08

    Unit Testing Saves the Day

    I had a fantastic unit testing experience at work today. A couple of days ago I released a DLL to production that scans some text and transforms part of the text according to certain rules. An example of this would be the text that users enter into a forum post. Users would enter [b]some text[/b] and...

    Continue reading "Unit Testing Saves the Day"

  • Mon
    02
    Jun 08

    Integration Unit Testing Analogy

    I like Roy Osherove 's restaurant analogy of Unit Testing vs. Integration Testing : When it comes to paying for a meal... Integration testing is like giving one big check to the group, with everyone having to calculate on their own how much they need to pay. sometimes everyone things they are good, but...

    Continue reading "Integration Unit Testing Analogy"

  • Sat
    03
    May 08

    Unit Testing Production Exceptions

    I have a web site that gets a bit of traffic and I log exceptions on that site. Nothing exciting or special, a sort of Log4Net but home grown and speciliazed for the site. The log recently showed an index out of range exception. When I saw the exception I kicked myself for not having the foresight to also log all the options, parameters and data that the user had input so that I could reproduce the error. This got me thinking...

    Continue reading "Unit Testing Production Exceptions"