VS-2017测试资源管理器/测试结果 - 本机C ++测试输出... [英] VS-2017 Test Explorer / Test Results - Native C++ Test Output...
本文介绍了VS-2017测试资源管理器/测试结果 - 本机C ++测试输出...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
TEST_CLASS(UnitTest1)
{
public:
TEST_METHOD(TestMethod1)
{
std :: cout<< "开始测试......" << std :: endl;
std :: cout<< "测试完成!" << std :: endl;
}
}
TEST_CLASS(UnitTest1)
{
public:
TEST_METHOD(TestMethod1)
{
std::cout << "Starting Test..." << std::endl;
std::cout << "Test Complete!" << std::endl;
}
}
没什么......无处可去......那怎么样?
Nothing...Nowhere... So how?
推荐答案
嗯?您需要创建一个项目并将源代码放入其中,然后从main调用该方法。
Huh? You need to create a project and put the source code in it and then call the method from the main.
这篇关于VS-2017测试资源管理器/测试结果 - 本机C ++测试输出...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文