Mid Testing

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.

More from C# Programming Tutorial

All questions for this course