Unit Test Private Method Using PrivateObject With Multiple ...
stackoverflow.com › questions › 44273058From a testing practices perspective, you don't test private methods directly. Private methods represent implementation details. You test the public methods of the class, and the private methods are exercised through the public methods. If you find it difficult to test your private methods in that fashion, it represents a design problem and the class should be split into smaller, composable classes and independently tested.