rjmurillo / moq.autocomplete

Visual Studio extension and Roslyn analyzer that helps to write unit tests using Moq mocking library. Port of Resharper extension to Roslyn.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Moq.Autocomplete

Visual Studio extension and Roslyn analyzer that helps to write unit tests using Moq mocking library. Migration of AgentZorge Resharper plugin to Roslyn.

Works in Visual Studio 2017 only because in previous versions Roslyn completion service is not available.

Note: moq.autocomplete can be used in combination with moq.analyzers, which provide highlights and quick fixes for many typical problems.

Supported features

Suggest It.IsAny() when setting up mocked method, including full set of arguments for accepting any parameters

Generate lambdas for Callback() and Returns() methods

Suggest variable names based on the name of mocked interface

Suggest existing mocks into constructors

How to install:

  • Install "Moq.Autocomplete" extension from Visual Studio Marketplace.

About

Visual Studio extension and Roslyn analyzer that helps to write unit tests using Moq mocking library. Port of Resharper extension to Roslyn.

License:MIT License


Languages

Language:C# 86.7%Language:PowerShell 13.3%