5 ms·
For anyone that is using Moq, I highly recommend using AutoMoq as well (this is different from AutoFixture). Everyone knows how frustrating it can be when you a
by viggity 10y ago
For anyone that is using Moq, I highly recommend using AutoMoq as well (this is different from AutoFixture). Everyone knows how frustrating it can be when you add a dependency to the class under test and all your unit tests fail to compile. If you use AutoMoq, you just call .Resolve<ClassUnderTest>() and it will inject a mock for every parameter in the constructor, even if you haven't explicitly set it up. Dramatically reduces how much "Arrange" code you need to write.
https://github.com/darrencauthon/AutoMoq https://github.com/darrencauthon/AutoMoq