Problem
I was trying to run my tests through the visual studio IDE, i was getting the following error:
Unit Test Adapter threw exception: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information..
Symptoms
The following symptoms existed:
- If i chose to debug the tests they all worked. They only failed when doing a normal run
- Some of my assemblies were signed
Solution
The solution is that in the code coverage section of the test run config i needed to supply a key to resign the assemblies