Limitations of using C++/CLI with NUnit

后端 未结 5 2244
夕颜
夕颜 2021-02-15 14:49

This answer to a question about C++ unit test frameworks suggests a possibility that had not occurred to me before: using C++/CLI and NUnit to create unit tests for native C++ c

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-15 15:15

    My experience is that it is not possible to use NUnit to test C++ native code through C++/CLI because you will have trouble loading and using native code.

    I have tried using nunit to load a basic c++/cli test dll linked against "just thread" which is an implementation of the c++ standard thread library. Test dlls won't even load with the latest version of NUnit (2.6.2).

    So definitely not the way to go!

提交回复
热议问题