#include "stdafx.h"
#include "../../TestToolBox.h"
namespace TTB = TestToolBox;
class MySimpleFixture
{
public:
explicit MySimpleFixture(std::string const& in_configFile = "Default")
: m_configFile(in_configFile)
{
TTB_INFO_S("Constructor MySimpleFixture " << m_configFile);
}
~MySimpleFixture()
{
TTB_INFO_S("Destructor MySimpleFixture " << m_configFile);
}
private:
std::string m_configFile;
};
TTB_BOOST_TEST_CASE(TestSomething)
{
MySimpleFixture myFixture;
}}
TTB_BOOST_TEST_CASE(TestSomethingElse)
{
MySimpleFixture myFixture("ConfigFile_X");
}}
BOOST_FIXTURE_TEST_SUITE(TestSuiteWithFixtureCalledBeforeEachTestCase, MySimpleFixture);
TTB_BOOST_TEST_CASE(TestCaseA)
{
}}
TTB_BOOST_TEST_CASE(TestCaseB)
{
}}
TTB_BOOST_TEST_CASE(TestCaseC)
{
}}
BOOST_AUTO_TEST_SUITE_END();