Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Moq2NSubstitute Converter
Moq2NSubstitute Converter

Moq2NSubstitute Converter

Ricardo G. Pignone

|
173 installs
| (1) | Free
Extension to help convert the Moq test code to NSubstitute.
Download

Moq2NSubstitute Converter


This extension was developed to help convert the Moq framework to NSubstitute.

The intention is to help with this conversion, and does not guarantee a 100% effective conversion, it helps with most of the work.

If the test project uses more advanced features of Moq you will probably have to adjust some conversion that was not carried out.

OBS: This extension does not install the NSubstitute package, this process must be done by the developer.

Installing the extension.

The extension can be installed in visual studio via the extension manager. Just search for the extension name and then download..

File

Configure tokens replace.

In Visual Studio click: Tools => Options and Moq2NSubstitute Converter.

The understanding is already pre-configured with some tokens, but it is possible to edit them.

If something happens, you can restore the token default by clicking the "Restore default tokens" button.

File

Replace Moq tests code into NSubstitute.

Open a Moq test code and right click into code window. Click in "Moq2NSubstitute Converter" option menu. This menu item only appears when the code to be converted is a test using Moq.

File

The code will be converted to NSubstitute.

File

Output Window Details.

More details of the conversion or any type of problem can be viewed in the output window.

File

License

Freeware

User Reviews

Feedback is a key to constant improvement. It provides improvements and promotes a collaborative learning environment, taking advantage of the diversity of experiences.

Don't forget to give your feedback if the extension was useful to you. Just click here, it's simple and quick.

Donate

If you think the extension has been helpful to your work, please consider making a small donation to support continued development.

It may be the equivalent of a coffee ☕, but it makes a huge difference on the other side of the screen.

Provider Link QR Code
Paypal File File

If you are Brazilian, you can donate through pix.

Key QR Code
File File

Your contribution helps ensure that I can continue to improve and support the extension, making it even more useful to the community.

Thank you in advance for considering supporting this project. Your generosity makes all the difference!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft