“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.”
―
Working Effectively with Legacy Code
Share this quote:
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
by
Michael C. Feathers4,665 ratings, average rating, 286 reviews
Open Preview
Browse By Tag
- love (101332)
- life (79350)
- inspirational (75811)
- humor (44325)
- philosophy (30959)
- inspirational-quotes (28872)
- god (26862)
- truth (24732)
- wisdom (24612)
- romance (24340)
- poetry (23275)
- life-lessons (22583)
- quotes (20984)
- death (20527)
- travel (20241)
- happiness (18960)
- hope (18528)
- faith (18384)
- inspiration (17291)
- spirituality (15706)
- relationships (15511)
- religion (15374)
- motivational (15306)
- life-quotes (15285)
- love-quotes (15133)
- writing (14934)
- success (14183)
- motivation (13162)
- time (12860)
- motivational-quotes (12140)

