Author: rolf
Date: 2006-11-09 06:03:17 -0500 (Thu, 09 Nov 2006)
New Revision: 67587

Modified:
   trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
   
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/StatusBarPanelTest.cs
Log:
2006-11-09  Rolf Bjarne Kvinge  <[EMAIL PROTECTED]>

         * StatusBarPanelTest.cs: Added tests for bug #79842.




Modified: 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog   
2006-11-09 10:08:24 UTC (rev 67586)
+++ trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog   
2006-11-09 11:03:17 UTC (rev 67587)
@@ -1,5 +1,9 @@
 2006-11-09  Rolf Bjarne Kvinge  <[EMAIL PROTECTED]>
 
+        * StatusBarPanelTest.cs: Added tests for bug #79842.
+
+2006-11-09  Rolf Bjarne Kvinge  <[EMAIL PROTECTED]>
+
        * TrackBarTest.cs: Added tests for bug #79718.
        
 2006-11-08  Gert Driesen  <[EMAIL PROTECTED]>

Modified: 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/StatusBarPanelTest.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/StatusBarPanelTest.cs
       2006-11-09 10:08:24 UTC (rev 67586)
+++ 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/StatusBarPanelTest.cs
       2006-11-09 11:03:17 UTC (rev 67587)
@@ -26,7 +26,6 @@
                }
 
                [Test]
-               [Category ("NotWorking")]
                public void MinimumWidth2 ()
                {
                        StatusBarPanel p = new StatusBarPanel ();
@@ -36,6 +35,26 @@
                }
 
                [Test]
+               public void MinimumWidth3 ()
+               {
+                       StatusBarPanel p = new StatusBarPanel ();
+                       p.Width = 50;
+                       p.MinWidth = 200;
+                       p.MinWidth = 25;
+                       Assert.AreEqual (200, p.Width, "#1");
+                       
+                       p = new StatusBarPanel ();
+                       p.Width = 50;
+                       p.MinWidth = 25;
+                       Assert.AreEqual (50, p.Width, "#2");
+                       
+                       p = new StatusBarPanel ();
+                       p.Width = 50;
+                       p.MinWidth = 100;
+                       Assert.AreEqual (100, p.Width, "#3");
+               }
+               
+               [Test]
                public void ToStringTest ()
                {
                        StatusBarPanel p = new StatusBarPanel ();
@@ -47,5 +66,6 @@
                        p.Text = "}";
                        Assert.AreEqual ("StatusBarPanel: {}}", p.ToString(), 
"3");
                }
+               
        }
 }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to