Photo by Phillip Glickman on Unsplash
https://www.nuget.org/packages/AutoMoqCore/
Dependency Inversion is one of the SOLID principles. This can be applied to unittesting as well. With AutoMoqCore I can develop robust unittests that will always compile.
Focus on the smallest possible code for your unittest and let AutoMoqCore figure out the needed dependencies. Injection of mocks is automatically and can be tailored to your needs.