Ignore:
Timestamp:
Oct 13, 2007, 2:11:22 PM (17 years ago)
Author:
イグトランス (egtra)
Message:

FormatIntegerDを実装。
UnitTestの失敗時の表示を目立つようにした。
ArrayListを名前空間System.Collectionsに入れた。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/TestCase/SimpleTestCase/SimpleTestCase.ab

    r236 r355  
    22
    33#console
     4
     5Dim hStdOut = _System_hConsoleOut
     6
     7Dim csbi As CONSOLE_SCREEN_BUFFER_INFO
     8GetConsoleScreenBufferInfo(hStdOut, csbi)
     9
    410#include "SimpleTestCase.idx"
    511
     
    713    Dim resultStr As String
    814    If isSuccessful Then
    9         resultStr = Ex"OK\t"
     15        resultStr = Ex"OK      "
    1016    Else
    1117        resultStr = Ex"FAILURE!"
    1218    End If
    1319
    14     Print resultStr, msg
     20    If Not isSuccessful Then
     21        SetConsoleTextAttribute(hStdOut, BACKGROUND_RED Or BACKGROUND_GREEN Or BACKGROUND_INTENSITY)
     22    End If
     23
     24    Print resultStr; msg
     25
     26    If Not isSuccessful Then
     27        SetConsoleTextAttribute(hStdOut, csbi.wAttributes)
     28    End If
    1529End Function
    1630
Note: See TracChangeset for help on using the changeset viewer.