C
C#16mo ago
Sana Rinomi

❔ ✅ 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
Angius16mo 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 RinomiOP16mo ago
I see, I was trying 4.18 then upgraded to see if that would fix it What version would you recommend
Angius
Angius16mo 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 RinomiOP16mo ago
What other library do you recommend?
Angius
Angius16mo ago
FakeItEasy or NSubstitute
Sana Rinomi
Sana RinomiOP16mo ago
Thank you! :D Coming in here to say thank you again, FakeItEasy works flawlessly!
Angius
Angius16mo ago
Nice
Denis
Denis16mo ago
consider closing this thread using /close
Sana Rinomi
Sana RinomiOP16mo ago
Just did! Sorry about that!
Accord
Accord16mo 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.
Want results from more Discord servers?
Add your server