Changeset 385 for trunk/TestCase/SimpleTestCase/ExceptionTest.ab
- Timestamp:
- Nov 20, 2007, 12:04:07 AM (17 years ago)
- File:
-
- 1 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
Note:
See TracChangeset
for help on using the changeset viewer.