You generally don't unit test private methods directly. Since they are private, consider them an implementation detail. Nobody is ever going to call one of them and expect it to work a particular way. You should instead test your public interface. If the methods that call your private methods are working as you expect, you then assume by extension that your private methods are working correctly.
Created
August 17, 2017 10:29
-
-
Save vitkon/ce4de5c2c49f1ad5d8c669929d0a9aaf to your computer and use it in GitHub Desktop.
Coding best practices
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment