How do you unit test private methods?

I’m building a class library that will have some public & private methods. I want to be able to unit test the private methods (mostly while developing, but also it could be useful for future refactoring).

What is the correct way to do this?

3Best Answer
31

Leave a Comment