Where do you put unit tests for private functions in C# classes?
An article in Wikipedia suggests:
- Putting tests in the same class as the members they're testing
- Using partial classes
Personally, neither of these methods seem appropriate, and I much prefer to have unit tests located in a separate project altogether.
Any thoughts on this?
(I know there's a fair amount of debate on whether private methods should be tested at all. I'd like to hear both sides of the argument.)