Is it possible to test a COM-exposed assembly from .NET?

前端 未结 3 1887
灰色年华
灰色年华 2020-12-14 04:49

I have a .NET assembly which I have exposed to COM via a tlb file, and an installer which registers the tlb. I have manually checked that the installer works correctly and t

3条回答
  •  长情又很酷
    2020-12-14 05:27

    You should be able to create a wrapper class to your installed COM component using TLBImp then run your tests against that. You'll basically be writing a .Net assembly, installing that to COM then testing against the wrapper class so your tests will be routed as if it was called by a COM component

提交回复
热议问题