|
by wwagner via Bill Wagner: C# Development Blog | MySmartChannels on 10/19/2007 2:43:20 AM
And that's why I write automated tests.
I recently inherited some truly bad code. I'd post some examples, but the codebase is owned by a client, and the code is covered by an NDA. But, to give you an idea how bad it is, here are a few interesting statistics from when I first examined the code:
Longest method: 1779 lines (that's not a typo. The same method has a cyclomatic complexity of 204).Number of public fields: 527And, most significantly: Number of unit tests: 0.
This project
... [ read more ]
|
|