When I run unit tests with Visual Studio it works fine, because it runs from project directory where all assemblies are. But when I run it with resharper it
You are loading your assemblies dynamically by using Assembly.Load()
. May be you are missing a reference to the assembly to load. Otherwise shadow-copying may miss the unreferenced assemblies.
If you do not want to reference these assemblies, be sure to include them in your project and copy them to the output directory. You can do so by setting the "Copy to Output Directory" property or creating a custom post-build step.