Patterns or practices for unit testing methods that call a static method
Using dependency injection (either option 2 or 4) is definitely my preferred method of attacking this. Not only does it make testing easier it helps to separate concerns and keep classes from getting bloated. A clarification I need to make though is it is not true that static methods are hard to test. The problem … Read more