1
#include <cxxtest/TestSuite.h>
5
# define CXXTEST_SAMPLE_GUI_WAIT() Sleep( 1000 )
7
extern "C" unsigned sleep(unsigned seconds);
8
# define CXXTEST_SAMPLE_GUI_WAIT() sleep( 1 )
11
class GreenYellowRed : public CxxTest::TestSuite
16
CXXTEST_SAMPLE_GUI_WAIT();
19
void test_Start_green()
24
void test_Green_again()
26
TS_TRACE("Still green");
30
void test_Now_yellow()
36
void test_Cannot_go_back()
41
void test_Finally_red()
47
void test_Cannot_go_back_to_yellow()
53
void test_Cannot_go_back_to_green()