❔ ✅ Moq problems with "MethodCall.cs"

I'm running Moq in VS Code using Linux... Trying to verify any calls, even no calls just sends me to "_/src/Moq/MethodCall.cs" which apparently doesn't exist! I have no idea what's wrong, I've reinstalled the package and rebuilt the code. Setting up the functions doesn't produce any errors, only when I go to verify.
10 Replies
Angius
Angius2y ago
Which version of Moq are you using? Version 4.20 started including spyware that breaks the library completely on non-Windows systems
Sana Rinomi
Sana RinomiOP2y ago
I see, I was trying 4.18 then upgraded to see if that would fix it What version would you recommend
Angius
Angius2y ago
Either pin it to 4.18 and never update it, or switch to another mocking library 4.18 was the last version without the included spyware
Sana Rinomi
Sana RinomiOP2y ago
What other library do you recommend?
Angius
Angius2y ago
FakeItEasy or NSubstitute
Sana Rinomi
Sana RinomiOP2y ago
Thank you! :D Coming in here to say thank you again, FakeItEasy works flawlessly!
Angius
Angius2y ago
Nice
Denis
Denis2y ago
consider closing this thread using /close
Sana Rinomi
Sana RinomiOP2y ago
Just did! Sorry about that!
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?