this is a class for unit testing

Dependents:   OS

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers UnitTest.h Source File

UnitTest.h

00001 #ifndef UnitTest_h
00002 #define UnitTest_h
00003 
00004 #include "mbed.h"
00005 
00006 //!Library for unit testing
00007 /*!
00008 This is an unit test class
00009 */
00010 
00011 class UnitTest
00012 {
00013     private:
00014         Timer unitTest;
00015         unsigned int testCount;
00016     
00017     public:
00018         /**
00019         *   This is the start point of the unit test
00020         */
00021         void start();
00022         
00023         /**
00024         *   This is the end point of the unit test
00025         */
00026         void end();
00027         
00028         /**
00029         *   This is a test function
00030         */
00031         void assertOn(int, int);
00032 };
00033 
00034 #endif