[Cppunit-devel] name of my fixture
Brought to you by:
blep
|
From: Rachel A. <rac...@so...> - 2002-03-18 14:12:49
|
Hi,
I have a little question. I write the classical static suite() method in my
test Class (called MoneyTest):
CppUnit::Test * MoneyTest::suite()
{
CppUnit::TestSuite *suite = new CppUnit::TestSuite("MoneyTestSuite");
suite->addTest(new
CppUnit::TestCaller<MoneyTest>("testGetValue",&MoneyTest::testAdd));
return suite;
}
It works, but the creator of TestCaller calls "MoneyTest()" (constructor
without parameters) instead of "MoneyTest(std::String name)".
MoneyTest::MoneyTest(std::string nameParam)
{
TestCase (nameParam);
}
MoneyTest::MoneyTest()
{
TestCase ("mewName");
}
I don't want to give ever the same name for my fixture ! How can I do ?
Thanks
|