I'm trying to debug a unit test with the resharper testrunner but it's not working. Before my breakpoint is hit Visual Studio pops up a message box "There is no source code available for the current location." If I press OK it says LoadFromContextException.
Ideas anyone?
Ctrl+U R / Debug Unit Tests. Ctrl+U D on the toolbar. To run all tests in the session, click Run Current Session. Ctrl+U Y on the toolbar or alternatively, choose ReSharper | Unit Tests | Run Current Session from the main menu.
In the Unit Test Explorer window, select tests/test classes for the new session and choose Create New Session. from the context menu or press Ctrl+U N . In the main menu, choose ReSharper | Unit Tests | Create New Session or press Ctrl+U N .
With JetBrains dotCover (which is also available with the ReSharper Ultimate license), you can easily discover the degree to which the code of your solution is covered with unit tests.
Make sure you haven't changed the exception settings in Visual Studio: Debug -> Exceptions. Uncheck Thrown for Managed Debugging Assistants. This should fix the problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With