单元测试C ++程序。 [英] Unit testing a C++ program.

查看:183
本文介绍了单元测试C ++程序。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因为我在这里非常初学,所以我一直在尝试测试我的c ++程序。每当我进入visualc ++ - >测试我得到这两个原生单元测试项目和管理单元测试项目。但在c#我得到单元测试项目。



什么我试过了:



如何在c ++中获得单元测试项目选项,并且是本机单元测试项目和管理单元测试项目与单元测试项目相同吗?

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 ?

推荐答案

不同类型的测试项目专门针对不同的语言而设计。您只能使用以C ++为目标的选项之一。
The different types of test projects are designed specifically for the different languages. You can only use one of the options that target C++.


这篇关于单元测试C ++程序。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆