#include "stdafx.h"
#include "../../TestToolBox.h"
namespace TTB = TestToolBox;
class MyCondFixture : public TTB::ConditionalFixtureBase
{
public:
explicit MyCondFixture(std::string const& in_configFile = "Default")
: m_configFile(in_configFile)
{
TTB_INFO_S("Constructor MyFixture " << m_configFile);
}
~MyCondFixture()
{
TTB_INFO_S("Destructor MyFixture " << m_configFile);
}
private:
std::string m_configFile;
};
TTB_BOOST_TEST_CASE(TestTopicA)
{
TTB_COND_FIXTURE(MyCondFixture);
}}
TTB_BOOST_TEST_CASE(TestTopicB)
{
TTB_COND_FIXTURE(MyCondFixture);
}}
TTB_BOOST_TEST_CASE(TestTopicC)
{
TTB_COND_FIXTURE(MyCondFixture);
}}
TTB_BOOST_TEST_CASE(TestTopicD)
{
TTB_COND_FIXTURE_1(MyCondFixture, "FirstConfig");
}}
TTB_BOOST_TEST_CASE(TestTopicE)
{
TTB_COND_FIXTURE_1(MyCondFixture, "FirstConfig");
}}
TTB_BOOST_TEST_CASE(TestTopicF)
{
TTB_COND_FIXTURE_1(MyCondFixture, "ConfigTwo");
TTB_COND_FIXTURE_1(MyCondFixture, "ConfigTwo");
TTB_COND_FIXTURE_1(MyCondFixture, "ConfigTwo");
TTB_COND_FIXTURE(MyCondFixture);
TTB_COND_FIXTURE_1(MyCondFixture, "FirstConfig");
}}
class MyBoostTestSuiteFixture
{
public:
MyBoostTestSuiteFixture()
{
TTB_COND_FIXTURE_1(MyCondFixture, "ConfigXY");
}
};
BOOST_FIXTURE_TEST_SUITE(TestSuiteWithOneTimeInitialization, MyBoostTestSuiteFixture);
TTB_BOOST_TEST_CASE(TestCaseA)
{
}}
TTB_BOOST_TEST_CASE(TestCaseB)
{
}}
TTB_BOOST_TEST_CASE(TestCaseC)
{
}}
BOOST_AUTO_TEST_SUITE_END();