
6 Feb
2007
6 Feb
'07
6:56 p.m.
Hello Gennadiy -
The question I have for you is this: Can I pass an instance of a class (that contains all the requisite data I parsed from the XML file) to a test method. For example -
Short answer is - yes. Do you have any problems?
class my_complex_test { void test_assignment( can this be an instance of a class? )
Probably "ParameterType const&"?
{ ... } }; ... std::list<can this be a list that holds instances of a class> possible_xmlvalues; ts->add( BOOST_PARAM_CLASS_TEST_CASE( &my_complex_test::test_assignment, possible_xmlvalues.begin(), possible_xmlvalues.end() ) );
What version of boost are you using? You sure you need class? Gennadiy