Posted By:
Dave_Astels
Posted On:
Thursday, April 18, 2002 09:11 AM
I advise against directly testing private methods.
I teach that unit testing should be blackbox, testing only public behaviour. This is a natural result of practising test driven development.
Private methods should be there primarily as a result of refactoring, and play a supporting role. They should not provide any real behaviour on their own.
Dave