* ControlTest.cs: Added test for UseWaitCursor.
authorGert Driesen <drieseng@users.sourceforge.net>
Tue, 8 May 2007 19:27:38 +0000 (19:27 -0000)
committerGert Driesen <drieseng@users.sourceforge.net>
Tue, 8 May 2007 19:27:38 +0000 (19:27 -0000)
svn path=/trunk/mcs/; revision=76966

mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlTest.cs

index 9b1c7d1e3681b5c70240b2624378537c86577cae..205c062a5de32848889a50c8b806df0f9893425f 100644 (file)
@@ -1,6 +1,11 @@
+2007-05-08  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * ControlTest.cs: Added test for UseWaitCursor.
+
 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
 
-       * ControlTest.cs: Tests demonstrating Control.AutoSize from Stefan Noack.
+       * ControlTest.cs: Tests demonstrating Control.AutoSize from 
+       Stefan Noack.
 
 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
 
index 7d21a1c853b02b9547f9e8dea15c668e575e62ea..fdf3aa0b7821fd0682c223741292efee48a73243 100644 (file)
@@ -1780,6 +1780,19 @@ namespace MonoTests.System.Windows.Forms
                }
 
 #if NET_2_0
+               [Test]
+               [Category ("NotWorking")]
+               public void UseWaitCursorTest ()
+               {
+                       Control c = new Control ();
+                       Assert.IsFalse (c.UseWaitCursor, "#1");
+                       c.Cursor = Cursors.Hand;
+                       c.UseWaitCursor = true;
+                       Assert.AreEqual (Cursors.WaitCursor, c.Cursor, "#2");
+                       c.UseWaitCursor = false;
+                       Assert.AreEqual (Cursors.Hand, c.Cursor, "#3");
+               }
+
                [Test] // bug #80621, #81125
                public void DontCallSizeFromClientSize ()
                {