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

Resharper Plugin simplifying work with Moq and NHibernate.

License

Notifications You must be signed in to change notification settings

Litee/AgentZorge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Resharper Plugin simplifying work with Moq and NHibernate.

Resources

License

Stars

Watchers

Forks

Packages

No packages published