TestInvocation.h

Includes:
<string>
<functional>
<CPlusTest/CPlusTestDefines.h>

Overview

Use the links in the table of contents to the left to access the documentation.



Classes

ConcreteTestInvocation

Concrete class describing an invocation of a test method.

TestInvocation

Abstract base class describing an invocation of a test.



Macro Definitions

TEST_INVOCATION

Creates a complete concrete test invocation given a class and instance method.


TEST_INVOCATION


Creates a complete concrete test invocation given a class and instance method.

#define TEST_INVOCATION(c,m) new ConcreteTestInvocation<c>(#c, #m, std::mem_fun<void, c>(&c::m)) 
Parameters
c

The class of the test invocation to create.

m

The instance method to use for the created test invocation.

Return Value

Returns a new ConcreteTestInvocation that can be used to invoke the given instance method on a particular object.

Discussion

The TEST_INVOCATION macro creates a concrete test invocation given a class and an instance method, describing not only the instance method of the specified class that the invocation should invoke but also giving the invocation a proper name.

Did this document help you? Yes It's good, but... Not helpful...

 

Last Updated: 2009-08-12