I am trying to Resharper to run some NUnit unit tests. Some of the tests make a call to a COM component via the .Net wrapper. In the straightforward case, where the wrapper is created and in turn creates the underlying COM component, this appears to work fine. However, there are methods in the COM component which will try to CoCreateInstance another COM component. In this case, the test fails with the following error:
System.IO.FileNotFoundException : The specified module could not be found. (Exception from HRESULT: 0x8007007E)
The COM component is registered and does work to some degree as described above. I think Resharper is looking for the actual COM DLL file, but am not exactly sure.
Additional note: in the Resharper options, it is specified to Run tests from: Project output folder, which is where the COM DLL and the .Net Interop DLL reside.