Skip to content

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

License

Notifications You must be signed in to change notification settings

rjmurillo/moq.autocomplete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published