2005-08-04 Satya Sudha K <ksathyasudha@novell.com>
[mono.git] / mcs / class / Microsoft.VisualBasic / Test / standalone / 12199.vb
1   '
2   ' Copyright (c) 2002-2003 Mainsoft Corporation.
3   '
4   ' Permission is hereby granted, free of charge, to any person obtaining a
5   ' copy of this software and associated documentation files (the "Software"),
6   ' to deal in the Software without restriction, including without limitation
7   ' the rights to use, copy, modify, merge, publish, distribute, sublicense,
8   ' and/or sell copies of the Software, and to permit persons to whom the
9   ' Software is furnished to do so, subject to the following conditions:
10   ' 
11   ' The above copyright notice and this permission notice shall be included in
12   ' all copies or substantial portions of the Software.
13   ' 
14   ' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   ' IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   ' FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   ' AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   ' LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19   ' FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20   ' DEALINGS IN THE SOFTWARE.
21   '
22 Imports Microsoft.VisualBasic
23 Public Class TestClass
24     Public Function Test() As String
25         Dim oDT1 As Byte = 1
26         Dim oDT2 As Short = 1
27         Dim oDT3 As Integer = 1
28         Dim oDT4 As Long = 1000
29         Dim oDT5 As Single = 1.1
30         Dim oDT6 As Double = 2.2
31         Dim oDT7 As Decimal = 1000
32         Dim oDT8 As String = "abc"
33         Dim oDT9 As Object = Nothing
34         Dim oDT10 As Boolean = True
35         Dim oDT11 As Char = "c"c
36         Dim oDT12 As Date = #5/31/1993#
37         If IsDBNull(oDT1) Then Return "failed 1"
38         If IsDBNull(oDT2) Then Return "failed 2"
39         If IsDBNull(oDT3) Then Return "failed 3"
40         If IsDBNull(oDT4) Then Return "failed 4"
41         If IsDBNull(oDT5) Then Return "failed 5"
42         If IsDBNull(oDT6) Then Return "failed 6"
43         If IsDBNull(oDT7) Then Return "failed 7"
44         If IsDBNull(oDT8) Then Return "failed 8"
45         If IsDBNull(oDT9) Then Return "failed 9"
46         If IsDBNull(oDT10) Then Return "failed 10"
47         If IsDBNull(oDT11) Then Return "failed 11"
48         If IsDBNull(oDT12) Then Return "failed 12"
49         Return "Success"
50     End Function
51 End Class