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…
Tag: Unit Testing
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…
Cleaning your code with VS 2019
One book that I recommend the reading is Clean Code, by Robert Martin. It is a well written book with wonderful techniques to create better code and improve your current programs, so…
Parametrized tests with MS-Test
Recently, Microsoft introduced the new version of its test framework, MS-Test 2. With this new version, they introduced a new feature that I was waiting for a long time: parametrized tests (yes,…