'Debug Assertion Failed' when NUnit Test is run



When I run certain C# NUnit tests with the Resharper Test Runner, I get this error:

It happens in "Debug" or "Run" likewise. However, Hitting Retry won't hit any breakpoint in the debugger, so I have no information where this is coming from.

I feel this is a problem with the Resharper Test Runner. I haven't found anything related to this error with a google search yet.

How would I go on?

Comment actions Permalink

I dug a bit deeper and it seems like the problem might be located in native code.

I found this to help me, I'm about to try it: https://resharper-support.jetbrains.com/hc/en-us/community/posts/206676315-Debugging-native-unmanaged-code-in-unit-test

Comment actions Permalink

Hello Frederik,


What happens if debugging/running test with VS test runner? 

Could you please run Visual Studio with the following command line: 'devenv /ReSharper.LogFile c:\log\resharper.log /ReSharper.LogLevel Verbose', reproduce the issue and send us a corresponding 'resharper.log' file. You can share it privately via "Submit a request" form.

Thank you.

Comment actions Permalink

I have found the problem, and it was related to my own code. I found it using the work around described in https://resharper-support.jetbrains.com/hc/en-us/community/posts/206676315-Debugging-native-unmanaged-code-in-unit-test

Would have been nice if Resharper Test Runner could adopt a setting for native code from inside managed code.

Thank you anyway.


Please sign in to leave a comment.