(?)
Quotes are added by the Goodreads community and are not verified by Goodreads. (Learn more)
Michael C. Feathers

“Big classes can hide too much. This question comes up over and over again from people new to unit testing: “How do I test private methods?” Many people spend a lot of time trying to figure out how to get around this problem, but, as I mentioned in an earlier chapter, the real answer is that if you have the urge to test a private method, the method shouldn’t be private; if making the method public bothers you, chances are, it is because it is part of a separate responsibility. It should be on another class.”

Michael C. Feathers, Working Effectively with Legacy Code
Read more quotes from Michael C. Feathers


Share this quote:
Share on Twitter

Friends Who Liked This Quote

To see what your friends thought of this quote, please sign up!

1 like
All Members Who Liked This Quote



This Quote Is From

Working Effectively with Legacy Code Working Effectively with Legacy Code by Michael C. Feathers
4,665 ratings, average rating, 286 reviews
Open Preview

Browse By Tag