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 ...
source
share