当前位置: 首页>>代码示例>>C++>>正文


C++ TestSuite::addTest方法代码示例

本文整理汇总了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;
}
开发者ID:kkaempf,项目名称:openwbem,代码行数:25,代码来源:OW_ProviderManagerTestCases.cpp

示例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;
	}
开发者ID:kaorun55,项目名称:CppUnitxHelper,代码行数:7,代码来源:Tester.cpp

示例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;
	}
开发者ID:codersship,项目名称:inz,代码行数:7,代码来源:nelderMead_test.cpp

示例4: TestSuite

Test *QueryTestCase::suite ()
{
  TestSuite *testSuite = new TestSuite ("QueryTestCase");
    testSuite->addTest (makeTestCaller("testSimpleQuery", &QueryTestCase::testSimpleQuery));   
    testSuite->addTest (makeTestCaller("testSimpleSelectiveIterator", &QueryTestCase::testSimpleSelectiveIterator));

  return testSuite;
}
开发者ID:defbobo,项目名称:python-patterns-examples,代码行数:8,代码来源:QueryTestCase.cpp

示例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;
}
开发者ID:fmoule,项目名称:cacao,代码行数:8,代码来源:StringTest.cpp

示例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;
}
开发者ID:kaorun55,项目名称:CppUnitxHelper,代码行数:8,代码来源:TestSetupTest.cpp

示例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;
}
开发者ID:Konnekt,项目名称:lib-jabberoo,代码行数:9,代码来源:GlobalsTest.cpp

示例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;
}
开发者ID:marcclintdion,项目名称:iOS_WIN3,代码行数:9,代码来源:JPEGTests.cpp

示例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;
}
开发者ID:ernstae,项目名称:sysforpopkinetics,代码行数:9,代码来源:multiplyTest.cpp

示例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;
}
开发者ID:Abhishekpatil,项目名称:SonATA,代码行数:9,代码来源:testAngle.cpp

示例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;
}
开发者ID:ernstae,项目名称:sysforpopkinetics,代码行数:10,代码来源:lambdaTest.cpp

示例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;
}
开发者ID:Abhishekpatil,项目名称:SonATA,代码行数:10,代码来源:TestDx.cpp

示例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
开发者ID:QuentinFiard,项目名称:arabica,代码行数:10,代码来源:test_DocumentFragment.hpp

示例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);
}
开发者ID:jmnavarro,项目名称:PKI_Cryptocard_Engine,代码行数:10,代码来源:ValidacionCertificadoCAPITest.cpp

示例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);
}
开发者ID:jmnavarro,项目名称:PKI_Cryptocard_Engine,代码行数:11,代码来源:ValidacionCertificadoCLTest.cpp


注:本文中的TestSuite::addTest方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。