How do you test code with static methods?
Refactor static methods into instance methods where possible for easier testing.
Alternatively, wrap static calls in interfaces or use tools like Microsoft Fakes or JustMock that
support static mocking.
Refactor static methods into instance methods where possible for easier testing.
Alternatively, wrap static calls in interfaces or use tools like Microsoft Fakes or JustMock that
support static mocking.