本文整理汇总了C++中TestSuite::addTest方法的典型用法代码示例。如果您正苦于以下问题:C++ TestSuite::addTest方法的具体用法?C++ TestSuite::addTest怎么用?C++ TestSuite::addTest使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TestSuite
的用法示例。
在下文中一共展示了TestSuite::addTest方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: suite
Test* OW_ProviderManagerTestCases::suite()
{
TestSuite *testSuite = new TestSuite ("OW_ProviderManager");
testSuite->addTest (new TestCaller <OW_ProviderManagerTestCases>
("testInit",
&OW_ProviderManagerTestCases::testInit));
testSuite->addTest (new TestCaller <OW_ProviderManagerTestCases>
("testGetInstanceProvider",
&OW_ProviderManagerTestCases::testGetInstanceProvider));
testSuite->addTest (new TestCaller <OW_ProviderManagerTestCases>
("testGetMethodProvider",
&OW_ProviderManagerTestCases::testGetMethodProvider));
#ifndef OW_DISABLE_ASSOCIATION_TRAVERSAL
testSuite->addTest (new TestCaller <OW_ProviderManagerTestCases>
("testGetAssociatorProvider",
&OW_ProviderManagerTestCases::testGetAssociatorProvider));
#endif
testSuite->addTest (new TestCaller <OW_ProviderManagerTestCases>
("testGetIndicationProvider",
&OW_ProviderManagerTestCases::testGetIndicationProvider));
return testSuite;
}
示例2: suite
static Test* suite()
{
TestSuite* suite = new TestSuite( "QuizTest");
suite->addTest( new TEST_CALLER( QuizTest, testQuestion));
suite->addTest( new TEST_CALLER( QuizTest, testAnswer));
return suite;
}
示例3: suite
static Test* suite() {
TestSuite* testsSuite = new TestSuite("NelderMeadTest");
testsSuite->addTest(new TestCaller<NelderMeadTest>("creationTest", &NelderMeadTest::creationTest));
testsSuite->addTest(new TestCaller<NelderMeadTest>("calculateTest", &NelderMeadTest::calculateTest));
return testsSuite;
}
示例4: TestSuite
Test *QueryTestCase::suite ()
{
TestSuite *testSuite = new TestSuite ("QueryTestCase");
testSuite->addTest (makeTestCaller("testSimpleQuery", &QueryTestCase::testSimpleQuery));
testSuite->addTest (makeTestCaller("testSimpleSelectiveIterator", &QueryTestCase::testSimpleSelectiveIterator));
return testSuite;
}
示例5: suite
Test* StringTest::suite() {
TestSuite *suite = new TestSuite();
suite->addTest(new TestCaller<StringTest>("test_size", &StringTest::test_size));
suite->addTest(new TestCaller<StringTest>("test_affectation", &StringTest::test_affectation));
suite->addTest(new TestCaller<StringTest>("test_charAt", &StringTest::test_charAt));
suite->addTest(new TestCaller<StringTest>("test_equals", &StringTest::test_equals));
return suite;
}
示例6: suite
Test* TestSetupTest::suite()
{
TestSuite* suite = new TestSuite("TestSetupTest");
suite->addTest(new TEST_CALLER(TestSetupTest, testTestSetup));
suite->addTest(new TEST_CALLER(TestSetupTest, testSetUpError));
suite->addTest(new TEST_CALLER(TestSetupTest, testTearDownError));
return suite;
}
示例7: getTestSuite
Test* GlobalsTest::getTestSuite()
{
TestSuite* s = new TestSuite();
s->addTest(new TestCaller<GlobalsTest>("testing XML escaping",
&GlobalsTest::escape));
s->addTest(new TestCaller<GlobalsTest>("testing XML unescape",
&GlobalsTest::unescape));
return s;
}
示例8: TestSuite
Test*
JPEGTests::suite() {
typedef TestCaller<JPEGTests> Caller;
TestSuite* suite = new TestSuite();
suite->addTest(new Caller("JPEG Loader", &JPEGTests::testLoader));
suite->addTest(new Caller("Incomplete JPEG", &JPEGTests::testIncomplete));
return suite;
}
示例9: suite
Test* multiplyTest::suite()
{
TestSuite *suiteOfTests = new TestSuite( "multiplyTest" );
suiteOfTests->addTest(new TestCaller<multiplyTest>("testMultiply", &multiplyTest::testMultiply));
suiteOfTests->addTest(new TestCaller<multiplyTest>("testRefMultiply", &multiplyTest::testRefMultiply));
suiteOfTests->addTest(new TestCaller<multiplyTest>("testValarrayMultiply", &multiplyTest::testValarrayMultiply));
return suiteOfTests;
}
示例10: TestAngle
Test *TestAngle::suite()
{
TestSuite *testsuite = new TestSuite;
testsuite->addTest(new TestAngle ());
testsuite->addTest(new TestAngleClass<Radian> ());
testsuite->addTest(new TestAngleClass<Degree> ());
testsuite->addTest(new TestAngleClass<Hour> ());
return testsuite;
}
示例11: suite
Test* lambdaTest::suite()
{
TestSuite *suiteOfTests = new TestSuite("lambdaTest");
// duplicate the following example for each test case, replacing the case name.
suiteOfTests->addTest(new TestCaller<lambdaTest>("testWithD", &lambdaTest::testWithD));
suiteOfTests->addTest(new TestCaller<lambdaTest>("testWithoutD", &lambdaTest::testWithoutD));
return suiteOfTests;
}
示例12: TestSuite
Test *TestDx::suite ()
{
TestSuite *testSuite = new TestSuite("TestDx");
testSuite->addTest (new TestCaller <TestDx> ("testFoo", &TestDx::testFoo));
testSuite->addTest (new TestCaller <TestDx> ("testPrintIntrinsics", &TestDx::testPrintIntrinsics));
testSuite->addTest (new TestCaller <TestDx> (" testDxCmdLineArgs", &TestDx:: testDxCmdLineArgs));
return testSuite;
}
示例13: DocumentFragmentTest_suite
TestSuite* DocumentFragmentTest_suite()
{
TestSuite *suiteOfTests = new TestSuite;
suiteOfTests->addTest(new TestCaller<DocumentFragmentTest<string_type, string_adaptor> >("test1", &DocumentFragmentTest<string_type, string_adaptor>::test1));
suiteOfTests->addTest(new TestCaller<DocumentFragmentTest<string_type, string_adaptor> >("test2", &DocumentFragmentTest<string_type, string_adaptor>::test2));
suiteOfTests->addTest(new TestCaller<DocumentFragmentTest<string_type, string_adaptor> >("test3", &DocumentFragmentTest<string_type, string_adaptor>::test3));
suiteOfTests->addTest(new TestCaller<DocumentFragmentTest<string_type, string_adaptor> >("test4", &DocumentFragmentTest<string_type, string_adaptor>::test4));
suiteOfTests->addTest(new TestCaller<DocumentFragmentTest<string_type, string_adaptor> >("test5", &DocumentFragmentTest<string_type, string_adaptor>::test5));
return suiteOfTests;
} // DocumentFragmentTest_suite
示例14: suite
Test* ValidacionCertificadoCAPITest::suite()
{
TestSuite *suite = new TestSuite("ValidacionCertificadoCAPI");
suite->addTest( new ValidacionCertificadoCAPITestCaller("testValidarAlmacenCerrado", &ValidacionCertificadoCAPITest::testValidarAlmacenCerrado) );
suite->addTest( new ValidacionCertificadoCAPITestCaller("testEstaRevocado", &ValidacionCertificadoCAPITest::testEstaRevocado) );
suite->addTest( new ValidacionCertificadoCAPITestCaller("testEstaCaducado", &ValidacionCertificadoCAPITest::testEstaCaducado) );
return (suite);
}
示例15: suite
Test* ValidacionCertificadoCLTest::suite()
{
TestSuite *suite = new TestSuite("ValidacionCertificadoCL (requiere tarjetas C, D y E)");
suite->addTest( new ValidacionCertificadoCLTestCaller("ValidarAlmacenCerrado", &ValidacionCertificadoCLTest::testValidarAlmacenCerrado) );
suite->addTest( new ValidacionCertificadoCLTestCaller("CertificadoValido", &ValidacionCertificadoCLTest::testCertificadoValido) );
suite->addTest( new ValidacionCertificadoCLTestCaller("CertificadoRevocado", &ValidacionCertificadoCLTest::testCertificadoRevocado) );
suite->addTest( new ValidacionCertificadoCLTestCaller("CertificadoCaducado", &ValidacionCertificadoCLTest::testCertificadoCaducado) );
return (suite);
}