(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / class / Microsoft.VisualBasic / Test / standalone / 12195.vb
blob64bc3f0ffca06a37dfa8771a9651e543f271b223
2 ' Copyright (c) 2002-2003 Mainsoft Corporation.
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:
11 ' The above copyright notice and this permission notice shall be included in
12 ' all copies or substantial portions of the Software.
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.
24 Imports Microsoft.VisualBasic
25 Public Class TestClass
26 Public Function Test() As String
27 Dim oDT1 As Byte = 1
28 Dim oDT2 As Short = 1
29 Dim oDT3 As Integer = 1
30 Dim oDT4 As Long = 1000
31 Dim oDT5 As Single = 1.1
32 Dim oDT6 As Double = 2.2
33 Dim oDT7 As Decimal = 1000
34 Dim oDT8 As String = "abc"
35 Dim oDT9 As Object = Nothing
36 Dim oDT10 As Boolean = True
37 Dim oDT11 As Char = "c"c
39 If IsDate(oDT1) Then Return "failed 1"
40 If IsDate(oDT2) Then Return "failed 2"
41 If IsDate(oDT3) Then Return "failed 3"
42 If IsDate(oDT4) Then Return "failed 4"
43 If IsDate(oDT5) Then Return "failed 5"
44 If IsDate(oDT6) Then Return "failed 6"
45 If IsDate(oDT7) Then Return "failed 7"
46 If IsDate(oDT8) Then Return "failed 8"
47 If IsDate(oDT9) Then Return "failed 9"
48 If IsDate(oDT10) Then Return "failed 10"
49 If IsDate(oDT11) Then Return "failed 11"
51 Return "Success"
52 End Function
53 End Class