通过NUnit从托管DLL调用COM时出错

通过NUnit从托管DLL调用COM时出错,nunit,Nunit,我有一个用C#编写的单元测试用例,其中我必须调用一个COM对象。当独立运行时,测试用例工作正常。当通过NUnit(v-2.5.9)进行尝试时,同样失败,但出现以下异常: System.ArgumentException: Could not convert argument 0 for call to StartInstall. at System.Dynamic.ComRuntimeHelpers.CheckThrowException(Int32 hresult, ExcepInfo&

我有一个用C#编写的单元测试用例,其中我必须调用一个COM对象。当独立运行时,测试用例工作正常。当通过NUnit(v-2.5.9)进行尝试时,同样失败,但出现以下异常:

System.ArgumentException: Could not convert argument 0 for call to StartInstall.
   at System.Dynamic.ComRuntimeHelpers.CheckThrowException(Int32 hresult, ExcepInfo& excepInfo,     UInt32 argErr, String message)
at CallSite.Target(Closure , CallSite , ComObject , String , String , String , Object )
at CallSite.Target(Closure , CallSite , Object , String , String , String , Object )
有关于这种奇怪行为的线索吗