|
|
Log In | Not a Member? |
Contact ADC |
|
ADC Home > Reference Library > Reference > Tools > Xcode > CPlusTest Reference
|
TestFailure |
| Declared In: |
Exception that represents the failure of a unit test.
A TestFailure is an exception that represents the failure of a unit test and records the file and line number of the failure along with a message describing the failure. While this class does not descend from std::exception it may be thrown.
file |
Gets the source file in which the failure occurred.
public
const std::string& file() const throw();
The source file in which the failure occurred.
Gets the source file in which the failure occurred.
line |
Gets the line in the source file on which the failure occurred.
public
const unsigned int line() const throw();
The line in the source file on which the failure occurred.
Gets the line in the source file on which the failure occurred.
message |
Gets informative text describing the failure.
public
const std::string& message() const throw();
Informative text describing the failure.
Gets informative text describing the failure.
TestFailure |
Constructor for the TestFailure exception.
public
TestFailure( const std::string& file, const unsigned int line, const std::string& message) throw();
filelinemessageConstructor for the TestFailure exception.
~TestFailure |
Destructor for the TestFailure exception.
public
virtual ~TestFailure() throw();
Destructor for the TestFailure exception.
|