How do you test private methods with NUnit?

Generally, unit testing addresses a class’s public interface, on the theory that the implementation is immaterial, so long as the results are correct from the client’s point of view.

So, NUnit does not provide any mechanism for testing non-public members.

Leave a Comment