I have just branched our Common Business Layer projects from the main to a new branch, and included them in a new solution. Everything compiles but when I run the unit tests I get the following error for every single test…
Unit Test Adapter threw exception: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
The strange thing is they run fine when I debug them. The error only happens when I run them without the debugger attached.
Failing an outright fix, can anyone tell me how to ‘Retrieve the LoaderExceptions property’?
Try cleaning the solution and trying again.
Also try clicking on the link that appears in yellow bar of the Test Results window, this sometimes gives more information about why tests cannot be run.