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