You have an app developed a long time ago and it’s showing its age. It’s time to modernize it, but rewrite isn’t an option: it’s too complicated to rewrite it and it’s…
Month: October 2020
Mocking non-virtual methods of a class with Microsoft Fakes
After I finished last article, I started to think that there should be another way to test the non-virtual methods of a class. And, as a matter of fact, there is another…
Mocking non-virtual methods of a class
Introduction Usually I use interfaces for my unit tests. This is a good practice, and should be followed when possible. But, last week I was testing some legacy code, which had no…