Author: sashak
Date: 2007-07-09 08:27:03 -0400 (Mon, 09 Jul 2007)
New Revision: 81633
Modified:
trunk/mono-basic/vbruntime/Test/Microsoft.VisualBasic/DateAndTimeTests.cs
Log:
Exclude the system time setting tests under TARGET_JVM (the feature is
unsupported).
Modified:
trunk/mono-basic/vbruntime/Test/Microsoft.VisualBasic/DateAndTimeTests.cs
===================================================================
--- trunk/mono-basic/vbruntime/Test/Microsoft.VisualBasic/DateAndTimeTests.cs
2007-07-09 12:12:05 UTC (rev 81632)
+++ trunk/mono-basic/vbruntime/Test/Microsoft.VisualBasic/DateAndTimeTests.cs
2007-07-09 12:27:03 UTC (rev 81633)
@@ -730,6 +730,8 @@
// TODO: Add a test for setting the date string too
}
+#if !TARGET_JVM
+ //DateAndTime.DateString property is read-only under TARGET_JVM
[Test]
public void DateString_1()
{
@@ -762,6 +764,7 @@
}
}
}
+#endif
[Test]
[ExpectedException(typeof(InvalidCastException))]
@@ -1076,6 +1079,8 @@
// TODO: add a test case for setting time of day
}
+#if !TARGET_JVM
+ //DateAndTime.TimeOfDay property is read-only under TARGET_JVM
[Test]
public void TimeOfDay_1()
{
@@ -1096,7 +1101,7 @@
}
}
}
-
+#endif
#endregion
#region TimeSerial Tests
@@ -1168,6 +1173,8 @@
// TODO: add a test case for setting TimeString
}
+#if !TARGET_JVM
+ //DateAndTime.TimeString property is read-only under TARGET_JVM
[Test]
public void TimeString_1()
{
@@ -1209,9 +1216,9 @@
DateAndTime.TimeString = dt;
} catch {
}
- }
-
+ }
}
+#endif
[Test]
[ExpectedException(typeof(InvalidCastException))]
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches