Author: jpobst
Date: 2008-02-19 13:22:18 -0500 (Tue, 19 Feb 2008)
New Revision: 96171
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/SelectionRangeTest.cs
Log:
2008-02-19 Jonathan Pobst <[EMAIL PROTECTED]>
* SelectionRangeTest.cs: Add NET_2_0 so that 1.1 profile will build.
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
2008-02-19 17:46:47 UTC (rev 96170)
+++ trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
2008-02-19 18:22:18 UTC (rev 96171)
@@ -1,5 +1,9 @@
2008-02-19 Jonathan Pobst <[EMAIL PROTECTED]>
+ * SelectionRangeTest.cs: Add NET_2_0 so that 1.1 profile will build.
+
+2008-02-19 Jonathan Pobst <[EMAIL PROTECTED]>
+
* SelectionRangeTest.cs: Add tests from Andy Hume.
2008-02-19 Jonathan Pobst <[EMAIL PROTECTED]>
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/SelectionRangeTest.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/SelectionRangeTest.cs
2008-02-19 17:46:47 UTC (rev 96170)
+++
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/SelectionRangeTest.cs
2008-02-19 18:22:18 UTC (rev 96171)
@@ -43,8 +43,10 @@
// "9999-12-31 00:00:00", note not 23:59:59.
Assert.AreEqual (DateTime.MaxValue.Date, sr.End, "End");
+#if NET_2_0
Assert.AreEqual (DateTimeKind.Unspecified,
sr.Start.Kind, "Start Kind");
Assert.AreEqual (DateTimeKind.Unspecified, sr.End.Kind,
"End Kind");
+#endif
}
[Test]
@@ -88,9 +90,10 @@
SelectionRange sr = new SelectionRange (new DateTime
(2001, 1, 11), new DateTime (2008, 2, 17, 1, 2, 3));
Assert.AreEqual (new DateTime (2001, 1, 11), sr.Start,
"Start");
Assert.AreEqual (new DateTime (2008, 2, 17), sr.End,
"End");
-
+#if NET_2_0
Assert.AreEqual (DateTimeKind.Unspecified,
sr.Start.Kind, "Start Kind");
Assert.AreEqual (DateTimeKind.Unspecified, sr.End.Kind,
"End Kind");
+#endif
}
#if NET_2_0
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches