#define BOOST_TEST_MODULE MasterTestSuite
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE (ctor_test1)
{
Foo a;
BOOST_CHECK_EQUAL(a.name(),MY_PROJECT_NAMESPACE::Foo::DEF_NAME);
}
BOOST_AUTO_TEST_CASE (ctor_test2)
{
const std::string theName("Blah");
Foo a(theName);
BOOST_CHECK_EQUAL(a.name(),theName);
}
BOOST_AUTO_TEST_SUITE_END()
What is wrong?