Another fix
[mono.git] / mcs / class / System.Web / Test / System.Web.UI / ControlTest.cs
index 7f300e2a73af1ff531b54cf73e118f820fce403d..d16a33100eaea87d4bdf4f21bb9522d39e24a447 100644 (file)
@@ -311,7 +311,7 @@ namespace MonoTests.System.Web.UI
                }
 
                [Test]
-               [Category ("NotWorking")] // Not implemented exception
+                       [Category("NotWorking")]  //EnsureID is not implemented.
                public void EnsureID ()
                {
                        MyNC ctrl = new MyNC ();
@@ -320,13 +320,15 @@ namespace MonoTests.System.Web.UI
                        Page p = new Page ();
                        p.Controls.Add (ctrl);
                        ctrl.EnsureID ();
-                       if (ctrl.ID == string.Empty)
+                       if (String.IsNullOrEmpty (ctrl.ID))
                                Assert.Fail ("EnsureID#1");
-                       if (ctrl1.ID == string.Empty)
+                       ctrl1.EnsureID ();
+                       if (String.IsNullOrEmpty (ctrl1.ID))
                                Assert.Fail ("EnsureID#2");
                }
 
                [Test]
+               [Category("NotWorking")]
                public void Focus ()
                {
                        WebTest t = new WebTest (PageInvoker.CreateOnLoad (Focus_Load));