Today I was trying to wrap some code in some tests (I got lazy and did not create the tests first… shot me). What I was trying to ensure was that my event handlers I passed into a method were actually being wired up for usage. Now I searched around the net for a while to see if there was...
I am 99% sure I have had a post like this in the past, but my google-foo was weak today and I could not find it. Do not let anyone blow smoke up your back side, testing is expensive, testing takes time but most importantly testing can help improve the quality of your code. If you are going to spend...
Joel , in his inimitable way, posted the flame bait of all flame bait posts yesterday , explaining the role of the Duct Tape Programmer. To my surprise, the Twitterverse started to reverberate with commentary, but weirdly, almost all of it was very negative about the post, many claiming that Joel was...
If you find yourself using reflection in your unit test to push 'stub’ data into it your test just may smell. Now there are times (especially when dealing with legacy code) that you need use reflection to crack open a class to push/pull values but I would strongly suggest you consider the solutions...
Part of my job at work is to teach and mentor other developers on our team. Right now I am in the process of teaching two of our developers how to create unit tests (notice I did NOT say integration tests because most anyone can do those). We are also learning how to create our tests by utilizing an...