CppUnit project page FAQ CppUnit home page

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Asserter.h

Go to the documentation of this file.
00001 #ifndef CPPUNIT_ASSERTER_H
00002 #define CPPUNIT_ASSERTER_H
00003 
00004 #include <cppunit/Portability.h>
00005 #include <cppunit/SourceLine.h>
00006 #include <string>
00007 
00008 namespace CppUnit
00009 {
00010 
00042 namespace Asserter
00043 {
00044 
00047   void CPPUNIT_API fail( std::string message, 
00048                          SourceLine sourceLine = SourceLine() );
00049 
00056   void CPPUNIT_API failIf( bool shouldFail, 
00057                            std::string message, 
00058                            SourceLine sourceLine = SourceLine() );
00059 
00067   void CPPUNIT_API failNotEqual( std::string expected, 
00068                                  std::string actual, 
00069                                  SourceLine sourceLine = SourceLine(),
00070                                  std::string additionalMessage ="" );
00071 
00081   void CPPUNIT_API failNotEqualIf( bool shouldFail,
00082                                    std::string expected, 
00083                                    std::string actual, 
00084                                    SourceLine sourceLine = SourceLine(),
00085                                    std::string additionalMessage ="" );
00086 
00087 } // namespace Asserter
00088 } // namespace CppUnit
00089 
00090 
00091 #endif  // CPPUNIT_ASSERTER_H

SourceForge Logo hosts this site. Send comments to:
CppUnit Developers