OSDN Git Service

add comment
authortsutsumi <>
Tue, 16 Sep 2003 21:03:55 +0000 (21:03 +0000)
committertsutsumi <>
Tue, 16 Sep 2003 21:03:55 +0000 (21:03 +0000)
src/ccunit/CCUnitTestCase.h

index 5f00bb0..9923b96 100755 (executable)
 
 /**
  * A single test object.
+ *
+ * For each test implement a function which interacts with the
+ * case. Verify the expected results with assertions specified by
+ * calling CCUNIT_ASSERT on the expression you want to test:
+ * 
+ * @code
+ * void testAdd ()
+ * {
+ *   int result = value1 + value2;
+ *   CCUNIT_ASSERT (result == 5);
+ * }
+ *
+ * ...
+ *
+ * void MathTest_newTestCase_testAdd ()
+ * {
+ *   return ccunit_newTestCase ("addTest", "add test", addTest);
+ * }
+ * @endcode
+ *
+ * @see CCUnitTestFixture, CCUnitTestSuite, CCUintMakeSuite
+ * 
  * @ingroup WritingTestFixture
  */
 typedef struct CCUnitTestCase