Tagged: test

0
3 Best Practices to Test a Code That Calls Static Methods

3 Best Practices to Test a Code That Calls Static Methods

If you’ve ever developed unit tests in a serious project, you should know how frustrating it is to test a code that calls static methods. Here I’ll try to summarize 3 best practices that I normally use to test such a code. When does a static method requires a special care in unit tests? Not all static...