Feb 9, 2025
Thanks for writing the article - I agree with the message in general but not all of the reasoning.
On the testing front, if you need to write a unit test why bother mocking a static method? Just test the real thing. Not sure what you’re buying with the test isolation.
Second the example you share makes
Sense as part of a domain but it doesn’t represent a very general utility imo.