Changeset 385 for trunk/TestCase
- Timestamp:
- Nov 20, 2007, 12:04:07 AM (17 years ago)
- Location:
- trunk/TestCase/SimpleTestCase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TestCase/SimpleTestCase/ExceptionTest.ab
r375 r385 2 2 3 3 Sub BadProc() 4 Throw New S tring("hello! I am bad proc.")4 Throw New System.Exception("hello! I am bad proc.") 5 5 End Sub 6 6 … … 15 15 resultOfTest1 = True 16 16 End Try 17 Catch msg As S tring17 Catch msg As System.Exception 18 18 ' msgの受け渡しが未完成 19 If msg = "hello! I am bad proc." Then19 If msg.Message = "hello! I am bad proc." Then 20 20 resultOfTest2 = True 21 21 End If 22 22 Catch 23 23 System.Diagnostics.Trace.WriteLine( "Catchが実行された。ここに来るのは正しくない" ) 24 UnitTest( "到達しないコードへ到達", False) 24 25 Finally 25 26 resultOfTest3 = True -
trunk/TestCase/SimpleTestCase/SPrintFTest.ab
r383 r385 140 140 s = FormatCharacter(Asc("Y"), DWORD_MAX, 0, None) 141 141 UnitTest(Ex"FormatCharacter(\qY\q)", s, "Y") 142 s = FormatCharacter(Asc("I"), DWORD_MAX, 3, Left )142 s = FormatCharacter(Asc("I"), DWORD_MAX, 3, LeftSide) 143 143 UnitTest(Ex"FormatCharacter(\qI\q, Left)", s, "I ") 144 144 End Sub
Note:
See TracChangeset
for help on using the changeset viewer.