本文整理汇总了C++中TestSuite::addTestCase方法的典型用法代码示例。如果您正苦于以下问题:C++ TestSuite::addTestCase方法的具体用法?C++ TestSuite::addTestCase怎么用?C++ TestSuite::addTestCase使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TestSuite
的用法示例。
在下文中一共展示了TestSuite::addTestCase方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main(int argc, char *args[]) {
TestSuite ts;
ts.addTestCase(AutoRef<TestCase>(new HeapTestCase));
TestReport report(ts.testAll());
report.validate();
return 0;
}
示例2: main
int main(int argc, char *args[]) {
TestSuite suite;
suite.addTestCase(AutoRef<TestCase>(new DatagramSocketTestCase));
TestReport report(suite.testAll());
report.validate();
return 0;
}
示例3: TestSuite
static TestSuite *
make_suite_all_tests()
{
TestSuite *s;
s = new TestSuite();
s->addTestCase(new TC_Basic01());
s->addTestCase(new TC_Basic02());
s->addTestCase(new TC_Tokens01());
s->addTestCase(new TC_Tokens02());
s->addTestCase(new TC_Tokens03());
s->addTestCase(new TC_Tokens04());
s->addTestCase(new TC_Tokens05());
s->addTestCase(new TC_Tokens06());
s->addTestCase(new TC_Tokens07());
s->addTestCase(new TC_Tokens08());
s->addTestCase(new TC_Tokens201());
s->addTestCase(new TC_Tokens202());
s->addTestCase(new TC_Tokens203());
s->addTestCase(new TC_Tokens204());
s->addTestCase(new TC_Tokens205());
s->addTestCase(new TC_Tokens206());
s->addTestCase(new TC_Tokens207());
s->addTestCase(new TC_Tokens208());
s->addTestCase(new TC_Tokens209());
s->addTestCase(new TC_Tokens210());
s->addTestCase(new TC_MemFail01());
s->addTestCase(new TC_MemFail02());
s->addTestCase(new TC_MemFail03());
s->addTestCase(new TC_MemFail04());
s->addTestCase(new TC_MemFail05());
s->addTestCase(new TC_MemFail2_02());
s->addTestCase(new TC_MemFail2_03());
s->addTestCase(new TC_MemFail2_04());
s->addTestCase(new TC_MemFail2_05());
s->addTestCase(new TC_Postfix01());
s->addTestCase(new TC_Postfix02());
s->addTestCase(new TC_Postfix03());
s->addTestCase(new TC_Postfix04());
s->addTestCase(new TC_Postfix05());
s->addTestCase(new TC_Postfix_MemFail_01());
s->addTestCase(new TC_BuilderBasic01());
s->addTestCase(new TC_BuilderBasic02());
s->addTestCase(new TC_BuilderBasic03());
return s;
}