Unit Testing - Do Repeat Yourself
Posted by: Karl Seguin [MVP],
on 12 Sep 2009 |
View original | Bookmarked: 0 time(s)
Writing effective unit tests is as much about the test itself as it is about the code under test. All the experience in the world isn't going to help you write clean and meaningful tests against highly coupled code. Conversely, complex and messy unit tests don't add any value even if the code under test is perfectly designed. Ultimately, the secret is practice - the more tests you write, the better you are at it, and the cleaner your code becomes as a consequence.
One thing that I've...