Changeset 383 for trunk/TestCase/SimpleTestCase/SimpleTestCase.ab
- Timestamp:
- Nov 17, 2007, 9:34:36 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TestCase/SimpleTestCase/SimpleTestCase.ab
r355 r383 11 11 12 12 Function UnitTest( msg As String, isSuccessful As Boolean ) 13 Dim resultStr As String13 Dim resultStr = Nothing As String 14 14 If isSuccessful Then 15 15 resultStr = Ex"OK " … … 29 29 End Function 30 30 31 Function UnitTest( msg As String, test As String, expectation As String) 32 If test = expectation Then 33 Print Ex"OK "; msg 34 Else 35 SetConsoleTextAttribute(hStdOut, BACKGROUND_RED Or BACKGROUND_GREEN Or BACKGROUND_INTENSITY) 36 Print Ex"FAILURE!"; msg 37 Print " test string = '" + test + "'" 38 SetConsoleTextAttribute(hStdOut, csbi.wAttributes) 39 End If 40 End Function 41 31 42 Print "Please enter any key" 32 43 Dim a As Long
Note:
See TracChangeset
for help on using the changeset viewer.