|
|
|
|
|
by BeetleB
1537 days ago
|
|
> how to I test to make sure all those private methods do what I want them to do so that I know which one is broken when my public method breaks. Others have pointed out that you test only public methods. The thing I'd add to that: Having large classes is a code smell. If your class is big, it is probably several classes in one. Break it up accordingly. Some of your private methods in the big class will become public methods in the small class. |
|