| Revision 418, 0.6 kB
            (checked in by vbarta, 16 years ago) | 
        
          | 
#27: added UnitTest?++ to bdm sources, changed test_user_data to use it 
 | 
      
      
    | Line |  | 
|---|
| 1 | #include "AssertException.h" | 
|---|
| 2 | #include <cstring> | 
|---|
| 3 |  | 
|---|
| 4 | namespace UnitTest { | 
|---|
| 5 |  | 
|---|
| 6 | AssertException::AssertException(char const* description, char const* filename, int lineNumber) | 
|---|
| 7 | : m_lineNumber(lineNumber) | 
|---|
| 8 | { | 
|---|
| 9 | using namespace std; | 
|---|
| 10 |  | 
|---|
| 11 | strcpy(m_description, description); | 
|---|
| 12 | strcpy(m_filename, filename); | 
|---|
| 13 | } | 
|---|
| 14 |  | 
|---|
| 15 | AssertException::~AssertException() throw() | 
|---|
| 16 | { | 
|---|
| 17 | } | 
|---|
| 18 |  | 
|---|
| 19 | char const* AssertException::what() const throw() | 
|---|
| 20 | { | 
|---|
| 21 | return m_description; | 
|---|
| 22 | } | 
|---|
| 23 |  | 
|---|
| 24 | char const* AssertException::Filename() const | 
|---|
| 25 | { | 
|---|
| 26 | return m_filename; | 
|---|
| 27 | } | 
|---|
| 28 |  | 
|---|
| 29 | int AssertException::LineNumber() const | 
|---|
| 30 | { | 
|---|
| 31 | return m_lineNumber; | 
|---|
| 32 | } | 
|---|
| 33 |  | 
|---|
| 34 | } | 
|---|