Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
since i am very beginner here i have been trying to test my c++ program.whenever i get into visualc++ -> Test i get these two "native unit test project" and "managed unit test project".but in c# i get "unit test project".

What I have tried:

How can i get "unit test project" option in c++ as well and are "native unit test project" and "managed unit test project" does the same thing as "unit test project" does ?
Posted
Updated 28-Aug-18 5:34am
v2

1 solution

The different types of test projects are designed specifically for the different languages. You can only use one of the options that target C++.
 
Share this answer
 
Comments
Member 13784265 28-Aug-18 11:36am    
what's the difference between managed and native unit testing ?
Richard MacCutchan 28-Aug-18 11:40am    
C#, VB.NET, C++/CLI are all managed code. They compile into MSIL pseudo-code and can only run under the .NET framework. See Compiling to MSIL | Microsoft Docs[^].

C and C++ are 'native' code. They compile to actual machine code instructions, which will be executed by the hardware.
Member 13784265 28-Aug-18 11:43am    
"unit test" and "native" works the same way ?
Richard MacCutchan 28-Aug-18 13:56pm    
Sorry, I don't understand. The word 'native' applies to the compiled code. The term 'unit test' applies to testing, which is a separate issue.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900