#IFNDEF TEST_SUITE #DEFINE TEST_SUITE #IF .F. #DEFINE ENDTEST_SUITE #ENDIF #DEFINE TEST_CASE * #DEFINE ENDTEST_CASE #ENDIFIn the various methods, I am define the test case in the actual code as such:
* Standard Method Header *--------------------------------------- TEST_SUITE TEST_CASE First Test Case *- <Place Test Case code here> ENDTEST_CASE ENDTEST_SUITE WAIT WINDOW "For something" *- The remainder of the method is the actual code for the method.Now for the problem.
SET STEP ON #define kStart #IF .F. && text noshow #define kEnding #ENDIF && endtext WAIT WINDOW kStart ? "Hello" kEnding WAIT WINDOW ? "world" RETURNIn this example, the debugger stops at the first "WAIT" statement, but it proceeds after it, it exits the routine. Now if you comment out the first WAIT statement and run it again, the behavior changes a little. Now the it stops at the "RETURN" statement after executing the SET STEP statement.