我正在编写一个引用c ++ dll的c#项目的单元测试。这个c ++ dll是c ++链接库的托管包装器。因此,当我运行单元测试时,我遇到下面的异常,
I am writing unit tests for a c# project that refers c++ dll. This c++ dll is a managed wrapper for c++ linked library. So when I run a unit test I run into below exception,
我使用的是VS2015,.net 4.5。
I am using VS2015, .net 4.5.
如何解决此问题?我可以模拟整个lib,但这限制了单元测试的范围。
How do resolve this? I can mock the entire lib but that limits the scope on unit test.
谢谢
~Vaishali
~Vaishali