
Three unit testing principles, and what to do when they pull in different directions
Test through the public interface and keep tests targeted. When the two conflict, extract misplaced logic. If that is not enough, consider test-only setters and getters for the internal states.


























