Unit testing is hard. There I said it. Although I have been developing
software for the past 18 years I still find that putting my applications
through their paces via unit testing is difficult. I have learned the lesson
(I'm sure like many of you) the hard way. Unit testing is probably the most
important part of software development. We all get caught in the trap once in
a while when we believe that there is no need to test a piece of software we
just wrote. We convince ourselves it is too hard to test, the rest of the
application is solid, and that if there are any real errors in the code it
will be discovered by the QA department. You know and I know this is a bad
argument. Of course once the application is in production it is the piece of
code that we didn't test th... (more)