4 ms·
Unit Testing Private Methods
- platinumdragon 13y agoThis is exactly the method I advocate at work. The package private access type is perfect for testing. We have a small reflection library for use when package private isn't appropriate, but it just isn't that often.