Accessing Private Methods From Unit Tests
Summary In this post, I’m going to show how to write a unit test that can access a private method of an object under test. There is a lot of debate about whether private methods should be accessed from unit tests or that they should be either not tested, or made public. I’m going to … Read moreAccessing Private Methods From Unit Tests