Tests for implicit and explicit numeric conversions - contributed by Sudharsan V
[mono.git] / mcs / mbas / Test / tests / ExpConversionBoolToSingleA2.vb
1 Module ExpConversionofBoolToSingle
2         Sub Main()
3                 Dim a as Boolean = True
4                 Dim b as Single = CSng(a)
5                 if b <> -1 then
6                         Throw New System.Exception("Explicit Conversion of Bool(False) to Single has Failed. Expected -1, but got " & b)
7                 End if
8         End Sub
9 End Module