Skip to content

Instantly share code, notes, and snippets.

View Creastoff's full-sized avatar

Chris Davey Creastoff

View GitHub Profile
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