3 ms·
Tests should be testing a classes public interface, not the private methods that may or may not drive the public interface. What this type of design will push i
by matwood 13y ago
Tests should be testing a classes public interface, not the private methods that may or may not drive the public interface. What this type of design will push is to stick with the Single Responsibility Principle. If you find yourself wanting to test a lot of individual private methods you have likely violated SRP.