Simple Roslyn-based Visual Studio extension to speed up tests development when using NSubstitute mocking library. Inspired by https://github.com/ycherkes/MockIt
- Generate mocks from constructor calls:
Note: If you will add more parameters into existing constructor call then extension will offer you to generate mocks for new parameters
- (Option 1) Install "NSubstitute.QuickFixes" extension into Visual Studio - this way extension will work for all your projects
- (Option 2) Install "NSubstitute.QuickFixes" NuGet package into test projects - this way extension will work for specific projects only
- Refer NSubstitute library from your test project - analyzer ignores code if NSubstitute is not referenced!