NSubstitute icon indicating copy to clipboard operation
NSubstitute copied to clipboard

Create AutoMocker for NSubstitute

Open ShurikEv opened this issue 7 months ago • 2 comments

Are there any plans to develop AutoMocker for NSubstitute like https://github.com/moq/Moq.AutoMocker?

ShurikEv avatar May 07 '25 08:05 ShurikEv

I dont know the project, but the text says:

Use this if you're invested in your IoC container and want to decouple your unit tests from changes to their constructor arguments.

So you can achieve this with AutoFixture.

Ergamon avatar May 08 '25 15:05 Ergamon

It's not exactly the same, but there is: https://www.nuget.org/packages/AutoFixture.AutoNSubstitute/

304NotModified avatar May 08 '25 23:05 304NotModified