Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members  

wxTestAssertion Class Reference

A wxTestAssertion is thrown whenever a failure occurs in a test (e.g., WXTASSERT failure or some other kind of exception). More...

#include <ITest.h>

List of all members.

Public Methods

 wxTestAssertion (const char *pszMessage, const char *file, long unsigned lineNo)
 Construct a new wxTestAssertion object. More...


Public Attributes

char m_szMessage [1024]
const char * m_pszFile
long unsigned m_nLineNo


Detailed Description

A wxTestAssertion is thrown whenever a failure occurs in a test (e.g., WXTASSERT failure or some other kind of exception).

This way if a failure occurs in the middle of a test, the remainder of code in that test is skipped.

The wxTestAssertion object has a message, derived from the point of failure.

Definition at line 129 of file ITest.h.


Constructor & Destructor Documentation

wxTestAssertion::wxTestAssertion const char *    pszMessage,
const char *    file,
long unsigned    lineNo
[inline]
 

Construct a new wxTestAssertion object.

This isn't a pure interface as it contains code, but since it's inline it won't create any link-time dependencies, and it's completely self-contained (it doesn't use any external functions).

Parameters:
pszMessage  The message that describes this exception.
file  The source file at which this failure occured (if any).
lineNo  The line in the code at which this failure occured (if any).

Definition at line 141 of file ITest.h.


Member Data Documentation

char wxTestAssertion::m_szMessage[1024]
 

Definition at line 151 of file ITest.h.

const char* wxTestAssertion::m_pszFile
 

Definition at line 152 of file ITest.h.

long unsigned wxTestAssertion::m_nLineNo
 

Definition at line 153 of file ITest.h.


The documentation for this class was generated from the following file:
ThunderCow Software (c) 2001 Marty Saxton, ThunderCow Software. Generated on Sat Nov 17 14:08:32 2001 for wxTest by Doxygen 1.2.11