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

“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!


This Quote Is From

Working Effectively with Legacy Code Working Effectively with Legacy Code by Michael C. Feathers
4,653 ratings, average rating, 284 reviews

Browse By Tag