https://github.com/litee/nsubstitute.quickfixes
Visual Studio extension that simplifies usage of NSubstitute .NET mocking library
https://github.com/litee/nsubstitute.quickfixes
Last synced: about 1 year ago
JSON representation
Visual Studio extension that simplifies usage of NSubstitute .NET mocking library
- Host: GitHub
- URL: https://github.com/litee/nsubstitute.quickfixes
- Owner: Litee
- License: apache-2.0
- Created: 2016-08-28T17:32:35.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-08T20:00:34.000Z (over 9 years ago)
- Last Synced: 2025-02-23T20:05:41.282Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 91.8 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Simple Roslyn-based Visual Studio extension to speed up tests development when using NSubstitute mocking library. Inspired by https://github.com/ycherkes/MockIt
## Supported features:
* 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
## How to use:
* (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!