maiconcp / NSubstitute.QuickFixes

Visual Studio extension that simplifies usage of NSubstitute .NET mocking library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

About

Visual Studio extension that simplifies usage of NSubstitute .NET mocking library

License:Apache License 2.0


Languages

Language:C# 95.3%Language:PowerShell 4.7%