#include "stdafx.h"
#include <TestToolBox\TestToolBox.h>
namespace TTB = TestToolBox;
class MyTestSuiteFixture
{
public:
MyTestSuiteFixture()
{
TTB_INFO("\nMyTestSuiteFixture-Constructor");
}
~MyTestSuiteFixture()
{
TTB_INFO("\nMyTestSuiteFixture-Destructor");
TTB::TheXmlCheck()->SetDefaults();
}
};
BOOST_FIXTURE_TEST_SUITE(SuiteTestingSomeSubject, MyTestSuiteFixture)
TTB_BOOST_TEST_CASE(DemoTestCase)
{
int a = 4;
int b = 2;
BOOST_CHECK(a == 2 * b);
TTB_CHECK_EQUAL(a, 2 * b);
TTB_ACT_S("a=" << a << ", b=" << b);
TTB_EXP("a=4, b=2");
}};
BOOST_AUTO_TEST_SUITE_END()