Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Abc-Arbitrage/Abc.MoqComplete

Auto-completion plugin for Moq
https://github.com/Abc-Arbitrage/Abc.MoqComplete

completion csharp moq resharper resharper-plugin rider-plugin

Last synced: 4 days ago
JSON representation

Auto-completion plugin for Moq

Awesome Lists containing this project

README

        

![Build](https://github.com/Abc-Arbitrage/Abc.MoqComplete/workflows/Build/badge.svg)

# Abc.MoqComplete
MoqComplete is a Resharper plugin which provide auto-completion for the Moq framework (and Moq.AutoMock)

Works with latest Resharper 2022 and Rider (**non EAP**)

[

](https://www.jetbrains.com/?from=MoqComplete)

# Features
### It.IsAny completion
Suggest `It.IsAny()` when setting up mocked method

![](Media/ItIsAny_SetupCompletion.gif)

Suggest `It.IsAny()` when using verify on mocked method

![](Media/ItIsAny_VerifyCompletion.gif)

### Callback Completion
Suggest full `Callback<...>` method

![](Media/CallbackCompletion.gif)

### Returns Completion
Suggest full `Returns<...>` method

![](Media/ReturnsCompletion.gif)

### Suspicious Callback Detection
Detect suspicious `Callback`

![](Media/SuspiciousCallback.gif)

### Mock suggestion
Suggest existing `mock.Object`

![](Media/MockCompletion.gif)

Or new `Mock` in constructor

![](Media/MockProposalCompletion.gif)

### Fill with Mock
Fill an object with `Mock` objects (using fields or local variables)

![](Media/fillWithMock.gif)

### Mock variable name completion
Suggest the mock variable name

![](Media/proposeMockVarName.gif)

# More informations
Please see the [FAQ](https://github.com/Abc-Arbitrage/Abc.MoqComplete/wiki/Frequently-Asked-Questions) before creating an issue.