How to test a COM dependent object in C#

后端 未结 4 1216
后悔当初
后悔当初 2021-01-06 02:51

I´m trying to do TDD with an object that has a dependency on a COM Interface. I though about mocking the COM interface, while doing development testing, and do it real on th

4条回答
  •  情深已故
    2021-01-06 03:33

    Try to set "Embed Interop Types" to FALSE for assembly that contains COM interface.

提交回复
热议问题