Tests for implicit and explicit numeric conversions - contributed by Sudharsan V
[mono.git] / mcs / mbas / Test / tests / ExpConversionDecimaltoDoubleA.vb
1 'Author:
2 '   V. Sudharsan (vsudharsan@novell.com)
3 '
4 ' (C) 2005 Novell, Inc.
5
6 Module ExpConversionDecimaltoDoubleA
7         Sub Main()
8                 Dim a as Decimal = 123.5
9                 Dim b as Double = CDbl(a)
10                 if b<>123.5 then 
11                         Throw New System.Exception("Explicit Conversion of Long to Double has Failed. Expected 123.5 but got " &b)
12                 End if          
13         End Sub
14 End Module