Created
December 4, 2012 02:19
-
-
Save kawakawa/4199931 to your computer and use it in GitHub Desktop.
VbLiteUnit_Test_ForMat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
'VbLiteUnitを読み込みます | |
Implements ITestCase | |
Private Function ITestCase_TestCaseInstance() As ITestCase | |
Dim objResult As New ClassTest '自テストClass名を記載 | |
Debug.Assert TypeName(objResult) = TypeName(Me) | |
Set ITestCase_TestCaseInstance = objResult | |
End Function | |
Private Property Get ITestCase_Suite() As Variant | |
' Do nothing here | |
' Only run tests within RunTest. | |
End Property | |
Private Sub ITestCase_RunTest( _ | |
ByVal TestNum As Long, _ | |
TestName As String, _ | |
ExpectErrNum As Long, _ | |
EndOfTests As Boolean _ | |
) | |
Dim objTestNum As New TestNumGenerator | |
Select Case TestNum | |
Case tstcTestActionSetup | |
'Setup | |
Case tstcTestActionTeardown | |
'TearDown | |
Case objTestNum.NextNumber | |
'ここにテスト処理記載 | |
Case objTestNum.NextNumber | |
'ここにテストその2処理記載 | |
Case objTestNum.NextNumber | |
'ここにテストその3処理記載 | |
Case objTestNum.NextNumber | |
'ここにテストその4…以下テスト数分Caseを記載 | |
Case Else | |
EndOfTests = True | |
End Select | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment