make testing of inaccessible methods easier
While it's generally frowned upon testing privates, it can often be useful and the easier way to write tests. Eg you want to test something complicated method that is important, but you do not want to expose it directly to other classes... This new method uses reflection to make access to such methods possible from within tests without the need for intermediate classes.
Loading
Please register or sign in to comment