Skip to content

Resharper Plugin simplifying work with mocking libraries (e.g. Moq)

License

Notifications You must be signed in to change notification settings

EdwardSalter/AgentZorge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 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.

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 mocking libraries (e.g. Moq)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 98.5%
  • Batchfile 1.5%