Author: gert
Date: 2007-01-12 16:52:37 -0500 (Fri, 12 Jan 2007)
New Revision: 70938

Modified:
   
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlStyleTest.cs
Log:
* ControlStyleTest.cs: Added style test for LinkLabel with text, but
no links.


Modified: 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlStyleTest.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlStyleTest.cs
 2007-01-12 21:23:27 UTC (rev 70937)
+++ 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlStyleTest.cs
 2007-01-12 21:52:37 UTC (rev 70938)
@@ -350,14 +350,19 @@
 #endif
                        };
 
-                       Assert.AreEqual(LinkLabel_want, GetStyles(new 
LinkLabel()), "LinkLabelStyles");
+                       LinkLabel link = new LinkLabel ();
 
-                       // Test LinkLabel with a link
-                       LinkLabel link = new LinkLabel();
+                       // Test LinkLabel without text and without links
+                       Assert.AreEqual(LinkLabel_want, GetStyles(link), "#1");
+
+                       // Test LinkLabel with only text
                        link.Text = "Users need not fear making the switch to 
Linux";
-                        link.Links.Add (6,9, "http://link1";);
-                       Assert.AreEqual(LinkLabel_link_want, GetStyles(link), 
"LinkLabelStyles2");
+                       link.Links.Clear ();
+                       Assert.AreEqual (LinkLabel_want, GetStyles (link), 
"#2");
 
+                       // Test LinkLabel with a link
+                       link.Links.Add (6, 9, "http://link1";);
+                       Assert.AreEqual(LinkLabel_link_want, GetStyles(link), 
"#3");
                }
 
                [Test]

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

Reply via email to