3 ms·
There are too many "dogmatics" in Software Engineering. You want to unit test code that is worth while testing from a business point of view. If a private meth
by oxfordmale 5y ago
There are too many "dogmatics" in Software Engineering. You want to unit test code that is worth while testing from a business point of view.
If a private method contains a lot of complex business logic, you do want to test it, however, not necessarily if this code can be easily tested by calling one of the public methods.