|
Boost Users : |
From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2007-02-06 13:56:18
> 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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net