You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 4, 2022. It is now read-only.
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.