Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

test_case

The test_case class represents a single test case. A test case must be added to a test suite reachable from the master test suite in order for the test runner to run the test case.

namespace boost { namespace unit_test {

class BOOST_TEST_DECL test_case : public test_unit {
public:
    enum { type = tut_case };

    // Constructor
    test_case( const_string tc_name, callback0<> const& test_func );

    // Access methods
    callback0<> const&  test_func() const { return m_test_func; }
};

} }


PrevUpHomeNext