Gennady Verdel
Feb 23, 2024

I strongly suggest you read the wonderful book “The art of unit testing” by Roy Osherove. The main purpose of tests is to assert the system state and not verify the implementation details. Thus you should always write tests with decent dependency injection framework in place. Otherwise you will end up with the situation you described.

No responses yet