This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Albert Monteiro has produced this repository with the required patterns to replace Moq with NSubstitute. | |
https://github.com/AlbertoMonteiro/moq-to-nsubstitute/tree/main | |
Bare in mind there are still some patterns missing (some of which have been raised as issues in the repo) so you may have to make adjustments depending on your usage of Moq. | |
I have also writtten the below tool which leverages these patterns to automatically replace instances of Moq with NSubstitute. | |
https://github.com/Creastoff/Moqstitute |