To prevent an unsafe abort when evaluating the function “Moq.Internals.InterfaceProxy.ToString()”
Was getting this error from Visual Studio 2022 while debugging a unit test.
The solution for me was to uncheck the “Call string-conversion function on objects in variables windows” checkbox.
Tags: #Debugging #Moq #Tests #VisualStudio
Discuss... or leave a comment below.