Unit test in VS2010

Does anyone use this VS2010 feature for C ++ projects? If so, can this person provide some textbook links or explain how to do this?

+3
source share
3 answers

You cannot directly use the VS unit test utilities for your own C ++ projects. Basically you can use unit test only .NET types. Of course, you can write unit tests for C ++ / CLI (where they come from gcnewand ^) the class or structure that wrap your own C ++ code ... so, indirectly, yes, you can use VS to unit test native C ++ below code , you only need to provide the appropriate .NET wrappers. It can be automated to some degree, but still pretty tedious. You also need to compile your own C ++ project in a special way ...

+3
source
+1

Source: https://habr.com/ru/post/1767042/


All Articles