In tests/attributes:
[mono.git] / mcs / mbas / Test / tests / conversions / ExpConversionLongtoSingleA.vb
1 'Author:
2 '   V. Sudharsan (vsudharsan@novell.com)
3 '
4 ' (C) 2005 Novell, Inc.
5
6 Module ExpConversionLongtoSingleA
7         Sub Main()
8                 Dim a as Long = 124
9                 Dim b as Single = CSng(a)
10                 if b<>124 then 
11                         Throw New System.Exception("Explicit Conversion of Long to Single has Failed. Expected 124 but got " &b)
12                 End if          
13         End Sub
14 End Module