I was having a discussion with a colleague last week and we got on the topic of unit testing. What unfolded is what stemmed this post… It started like this…
Colleague: “There is no need to test getter’s and setter’s in a property, because ‘I know they work’.”
Me: “WHOA WHOA WHOA!! You know they work? How? Please inform me, because I KNOW my code works too, but I also know I MAKE MISTAKES, A LOT OF STUPID MISTAKES… ”
The conversation continued and eventually spawned this post … but before we get started, I’d...
Read more...