-
Kane replied to the topic How to test a private function / class that has private methods, or inner classe in the forum Quality Assurance / Software Testing 6 years, 4 months ago
First of all, don’t test private methods
Because to test a private method you have to break the internal implementation of the tests which in turn breaks the encapsulation of your class. So, it’s better not to test private methods.