Skip to content
This repository has been archived by the owner on Sep 4, 2022. It is now read-only.

Latest commit

 

History

History
38 lines (20 loc) · 1.91 KB

README.md

File metadata and controls

38 lines (20 loc) · 1.91 KB

AgentZorge

AgentZorge is a plugin for Resharper simplifying work with mocking libraries - currently focused on Moq and NSubstitute. To install the plugin use standard Resharper plugins management UI.

UPDATE: This project is being replaced by Agent.Zorge.Moq pure Roslyn extension which works without Resharper. Note that Agent.Zorge.Moq works only with VS 2017 because it relies on latest Roslyn completion APIs not available in VS 2015.

Compatibility

  • Only C# language is supported
  • I develop new features for the latest stable version of the R# (2016.1 at the moment) and backport them upon requests

Supported features

Moq: Suggest variable names based on the name of mocked interface

Moq: Suggest It.IsAny() when setting up mocked method, including full set of arguments for accepting any parameters. Recommendation: don't use It.IsAny() where specific value can be applied.

Moq: Generate callbacks with correct parameter types/names

Moq: Suggest existing mocks if they are available, otherwise suggest new Mock().Object

Moq: Highlight callbacks with invalid number of arguments or incompatible argument types

NSubstitute: Suggest Arg.Any() when setting up mocked methods, including full set of arguments for accepting any parameters