After some playing around I managed to recreate this on my setup (Xunit.net in resharper, visual studio 2008)... The steps I took to recreate this are:
- Set the dll that contains the tests as the startup project (I know you don't need to do this, was just trying to get it to fail)
- Put a breakpoint in the unit test
- Push F11 (the shortcut key for 'step into' in my configuration)
- This complains 'Cannot start test project 'RowanBeach.Crm.Domain.Test' because the project does not contain any tests.'
- Run the 'Debug Unit Tests' command from the Resharper menu (I have this bound to a key combination on my machine)
- This displays the 'No source code available...' message
Of course that's not how you should start unit tests from resharper! :) If that's what you were doing (or something similar), try this instead:
- Don't bother setting the dll as the startup project - it doesn't need to be
- build or rebuild the dll that contains the tests
- set the breakpoint
- Put the cursor somewhere in the source code for the unit test you want to debug to set it as the 'current context' unit test
- Run the 'Debug Unit Tests' command from the Resharper menu (You might want to bind this to a key combination if you haven't already)
Hopefully, that should work