16 August 2005

Testing Private methods

An article on testing private methods. I don't like the idea of using Reflection to do this. But the alternative looks complicated too.

I have more sympathy for the idea of keeping classes simple. If there are a lot of private methods that are difficult to test through the public interface then perhaps it is time to refactor.

No comments: