| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
Individual tests are created using a TestCase class. Common models for the use of a test case include "one test case per feature", and "one test case per method." Mixtures of these models may be used.
In order to create a new test case in the system, all one has to do is to inherit
from the  TestCase base class, override the constructor to give the test 
case a name and override the DoRun method to run the test.
class MyTestCase : public TestCase
{
  MyTestCase ();
  virtual bool DoRun (void);
};
MyTestCase::MyTestCase ()
  : TestCase ("Check some bit of functionality")
{
}
bool
MyTestCase::DoRun (void)
{
  NS_TEST_ASSERT_MSG_EQ (true, true, "Some failure message");
  return GetErrorStatus ();
}
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | 
 
  This document was generated on August 20, 2010 using texi2html 1.82.