CppUnit project page CppUnit home page

testcase.cpp File Reference

#include <cpput/testcase.h>
#include <cpput/assertcommon.h>
#include <cpput/exceptionguard.h>
#include <cpptl/functor.h>
#include <cpput/message.h>
#include <cpput/resource.h>
#include <cpput/testvisitor.h>

Include dependency graph for testcase.cpp:


Namespaces

namespace  CppUT

Functions

TestPtr CppUT::makeTestCase (void(*run)(), const std::string &name)
 Creates a TestCase with the specified name and run functor.
TestPtr CppUT::makeTestCase (const CppTL::Functor0 &run, const std::string &name)
 Creates a TestCase with the specified name and run functor.
TestPtr CppUT::makeTestCase (const CppTL::Functor0 &setUp, const CppTL::Functor0 &run, const CppTL::Functor0 &tearDown, const std::string &name)
 Creates a TestCase with the specified name and setUp, run, and tearDown functor.
TestPtr CppUT::makeFailingTestCase (const std::string &name, const Message &message)
 Creates a TestCase with the specified name that will always fail.

The test case run body simply call CPPUT_FAIL() with the specified message.


Variable Documentation

Message message_


SourceForge Logo hosts this site. Send comments to:
CppUnit Developers