moq.autocomplete
moq.autocomplete copied to clipboard
Visual Studio extension and Roslyn analyzer that helps to write unit tests using Moq mocking library. Port of Resharper extension to Roslyn.
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.