I am having almost the same problem as the OP.
LoaderException when using dynamic detection with NUnit tests.
When I change it to static detection I can now see my tests, but I cannot run any of them successfully. I see the following:
http://snag.gy/reSqS.jpg yellow triangle icon whenever I try to run a specific test.
Since I couldn't find the yellow icon in your documentation and because there was no easy way I could find to see any logs or anything of the sort I had to come here.
I tried disabling instrumentation on both the unit test project and the project under test and neither one made any difference.
This is C#.
Edit: I just found this in the processing Queue for every test:
[17:30:39.8985-TestExecutionTask-64] ERROR (Internal): System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
Edit 2: To save you any time here is what my setup is like:
We have a solution with ~20 projects.
We only have one unit test project (hoping to fix this soon)
We use maven to pull in some external dependencies
The unit tests are testing a project that uses/references the WPF libraries among many other things
I have tried including our maven target dependencies directory in both the unit test and project under test configuration with no luck.