Parameter Constraints

A constraint over acceptable values. More...

Classes

class  mockpp::IsAnything
 A constraint that always returns true. More...
class  mockpp::IsCloseTo< NumberType >
 Is the value of a number equal to a value within some range of acceptable deviation? More...
class  mockpp::IsEqual< T >
 Is the value equal to another value, as tested by the invoked method? Basically the same as IsSame which compares by reference and a specializable comparison template. More...
class  mockpp::IsGreaterOrEqual< T >
 Is the value greater or equal than another value? More...
class  mockpp::IsGreaterThan< T >
 Is the value greater than another value? More...
class  mockpp::IsInstanceOf< BASE, DERIVED >
 Tests whether the value is derived from the given class. More...
class  mockpp::IsLessOrEqual< T >
 Is the value less or equal than another value? More...
class  mockpp::IsLessThan< T >
 Is the value less than another value? More...
class  mockpp::IsNot< T >
 Calculates the logical negation of a constraint. More...
class  mockpp::IsNothing
 A constraint which is never true. More...
class  mockpp::IsSame< T >
 Is the value the same object as another value? Basically the same as IsEqual which compares with a value. More...
class  mockpp::Or< T >
 Calculates the logical disjunction of two constraints. More...
class  mockpp::OutBound< T >
 Passes a value back via a reference (outbound value). More...
class  mockpp::StringContains< StringType >
 Tests if the argument is a string that contains a substring. More...
class  mockpp::StringEndsWith< StringType >
 Tests if the argument is a string that contains a substring. More...
class  mockpp::StringStartsWith< StringType >
 Tests if the argument is a string that contains a substring. More...
class  mockpp::TriggeredConstraint< T >
 A constraint which is triggered or defered. More...
class  mockpp::TriggeredOutbound< T >
 Passes a value back via a reference (Outbound value). More...

Functions

template<class T >
bool mockpp::isEqualComparison (const T &left, const T &right)
 Default comparison function for IsEqual.
template<class T >
bool mockpp::isSameComparison (const T &left, const T &right)
 Default comparison function for IsSame.

Detailed Description

A constraint over acceptable values.

Constraints are part of a chained expectation and form a sub-expectation over a method parameter.


Function Documentation

template<class T >
bool mockpp::isEqualComparison ( const T &  left,
const T &  right 
) [inline]

Default comparison function for IsEqual.

The default implementation compares the values of the two objects.

See also:
mockpp::IsEqual
Parameters:
left left operand
right right operand
Returns:
true if both values are equal

Definition at line 56 of file IsEqual.h.

template<class T >
bool mockpp::isSameComparison ( const T &  left,
const T &  right 
) [inline]

Default comparison function for IsSame.

The default implementation compares the adresses of the two objects.

See also:
mockpp::IsSame
Parameters:
left left operand
right right operand
Returns:
true if both operands are equal

Definition at line 56 of file IsSame.h.

 All Classes Namespaces Files Functions Variables Typedefs Friends Defines

Generated on Tue Jan 5 09:48:57 2010 for mockpp by  doxygen 1.6.1