* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / mbas / Test / rerrors / Test / ExpConversionStringtoInt2.vb
1 'Author:
2 '   V. Sudharsan (vsudharsan@novell.com)
3 '
4 ' (C) 2005 Novell, Inc.
5
6 'System.InvalidCastException
7
8 Imports System
9 Imports Nunit.Framework
10
11 <TestFixture>_
12 Public Class ExpConversionStringtoIntegerB
13         _<Test, ExpectedException (GetType (System.InvalidCastException))>
14         Public Sub TestForException()           
15                         Dim a as Integer
16                         Dim b as String= "Program"
17                         a = CInt(b)
18         End Sub
19 End Class