When I run unit tests using Visual Studio, it works fine because it runs from the project directory where all the assemblies are located. But when I run it using resharper , it goes with error on
var services = Assembly.Load("SomeAssembly");
with an error
Failed to load file or assembly "SomeAssembly" or one of its dependencies. The system cannot find the specified file.
So i tried
var path = Assembly.GetExecutingAssembly().Location;
and he does not project one. it
C: \ Users \ * UserName * \ AppData \ Local \ Temp \ TestResults \ ... \ Out \
and there is no "SomeAssembly" . How to configure proper resharper setup or build all assemblies like Visual Studio?
Does this happen with unit tests, but not with NUnit, any ideas?
.net-assembly unit-testing nunit visual-studio-2012 resharper
Roar Apr 26 '13 at 7:36 on 2013-04-26 07:36
source share