Ignore:
Timestamp:
Mar 8, 2008, 4:52:01 PM (16 years ago)
Author:
dai
Message:

ActiveBasic.Xml.Parserを仮実装。
・SerializeTestのテストケースを追加。
・SimpleTestCaseにおいて、一時ディレクトリを扱えるようにした。
・XmlTestのテストケースを更新。

File:
1 edited

Legend:

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

    r457 r465  
    44
    55Dim hStdOut = _System_hConsoleOut
     6
     7Sub Initialize()
     8    ' 初期化関数
     9
     10    ' 一時ディレクトリを空にしておく
     11    Dim tempDir = System.IO.Path.GetDirectoryName( System.Windows.Forms.Application.ExecutablePath ) + "\temp"
     12    If System.IO.Directory.Exists( tempDir ) Then
     13        ' 存在するときは一旦消す
     14        System.IO.Directory.Delete( tempDir, True )
     15    End If
     16    System.IO.Directory.CreateDirectory( tempDir )
     17End Sub
     18
     19Initialize()
    620
    721Dim csbi As CONSOLE_SCREEN_BUFFER_INFO
     
    4054End Sub
    4155
     56Function GetExclusiveTempDirPath( testCaseName As String ) As String
     57    Dim tempDir = System.IO.Path.GetDirectoryName( System.Windows.Forms.Application.ExecutablePath ) + "\temp"
     58    Dim exclusiveTempDirPath = tempDir + "\" + testCaseName
     59
     60    If Not System.IO.Directory.Exists( exclusiveTempDirPath ) Then
     61        ' 無かったら作る
     62        System.IO.Directory.CreateDirectory( exclusiveTempDirPath )
     63    End If
     64
     65    Return exclusiveTempDirPath
     66End Function
     67
    4268Print "Please Enter key"
    4369System.Console.ReadLine()
Note: See TracChangeset for help on using the changeset viewer.