<html> <head> <title>CppTest - A C++ Unit Testing Framework</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> </head> <body bgcolor="#ffffff"> <table width="100%"> <tr> <td width="40%" align="right" valign="center"> <a href="http://cpptest.sourceforge.net">CppTest home page</a> </td> <td></td> <td width="40%" align="left" valign="center"> <a href="http://sourceforge.net/projects/cpptest">CppTest project page</a> </td> </tr> </table> <hr> <!-- Generated by Doxygen 1.5.9 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> </div> <div class="contents"> <h1>cpptest-suite.h File Reference</h1><code>#include <list></code><br> <code>#include <memory></code><br> <code>#include <string></code><br> <code>#include "<a class="el" href="cpptest-time_8h_source.html">cpptest-time.h</a>"</code><br> <p> <a href="cpptest-suite_8h_source.html">Go to the source code of this file.</a><h2>Classes</h2> <ul> <li>class <a class="el" href="classTest_1_1Suite.html">Test::Suite</a> <dl class="el"><dd class="mdescRight">Unit testing suite. <a href="classTest_1_1Suite.html#_details">More...</a><br></dl></ul> <h2>Namespaces</h2> <ul> <li>namespace <a class="el" href="namespaceTest.html">Test</a> </ul> <h2>Defines</h2> <ul> <li>#define <a class="el" href="cpptest-suite_8h.html#be8c3e0a2cf3893ebc1c265264ed9cb8">TEST_ADD</a>(func) </ul> <hr><h2>Detailed Description</h2> <hr><h2>Define Documentation</h2> <a class="anchor" name="be8c3e0a2cf3893ebc1c265264ed9cb8"></a><!-- doxytag: member="cpptest-suite.h::TEST_ADD" ref="be8c3e0a2cf3893ebc1c265264ed9cb8" args="(func)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define TEST_ADD </td> <td>(</td> <td class="paramtype">func </td> <td class="paramname"> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Adds a test function to the enclosing suite. Note that test functions should be added in the suites constructor.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>func</em> </td><td>Function to add, must be of type Suite::Func.</td></tr> </table> </dl> <dl class="user" compact><dt><b>Example:</b></dt><dd><div class="fragment"><pre class="fragment"> MySuite::MySuite() { <a class="code" href="cpptest-suite_8h.html#be8c3e0a2cf3893ebc1c265264ed9cb8">TEST_ADD</a>(&MySuite::test_1) <a class="code" href="cpptest-suite_8h.html#be8c3e0a2cf3893ebc1c265264ed9cb8">TEST_ADD</a>(&MySuite::test_2) ... } </pre></div> </dd></dl> </div> </div><p> </div> <hr> <div align="center"> Supported by: <br><br> <img src="http://sourceforge.net/sflogo.php?group_id=77564" width="88" height="31" border="0" alt="SourceForge Logo"></a> </div> </body> </html>