Author: miguel
Date: 2006-11-28 13:39:41 -0500 (Tue, 28 Nov 2006)
New Revision: 68598

Modified:
   trunk/mcs/class/System.Web/Test/System.Web/HttpRequestTest.cs
   trunk/mcs/class/System.Web/Test/System.Web/StaticSiteMapProviderTest.cs
Log:
More NotWorking tests that are using the broken WebTest.Run

Modified: trunk/mcs/class/System.Web/Test/System.Web/HttpRequestTest.cs
===================================================================
--- trunk/mcs/class/System.Web/Test/System.Web/HttpRequestTest.cs       
2006-11-28 18:31:30 UTC (rev 68597)
+++ trunk/mcs/class/System.Web/Test/System.Web/HttpRequestTest.cs       
2006-11-28 18:39:41 UTC (rev 68598)
@@ -173,8 +173,8 @@
                [Test]
                [Category ("NunitWeb")]
 #if TARGET_JVM //BUG #6500
+#endif
                [Category ("NotWorking")]
-#endif
                public void Test_MapPath ()
                {
                        WebTest t = new WebTest (new HandlerInvoker (new 
HandlerDelegate (

Modified: 
trunk/mcs/class/System.Web/Test/System.Web/StaticSiteMapProviderTest.cs
===================================================================
--- trunk/mcs/class/System.Web/Test/System.Web/StaticSiteMapProviderTest.cs     
2006-11-28 18:31:30 UTC (rev 68597)
+++ trunk/mcs/class/System.Web/Test/System.Web/StaticSiteMapProviderTest.cs     
2006-11-28 18:39:41 UTC (rev 68598)
@@ -34,7 +34,7 @@
 using System.Collections.Specialized;
 using NUnit.Framework;
 using System.Diagnostics;
-using MonoTests.SystemWeb.Framework;
+using MonoTests.SystemWeb.Framework;
 using System.Web.UI;
 
 namespace MonoTests.System.Web {
@@ -90,6 +90,7 @@
 
                [Test]
                [Category("NunitWeb")]
+               [Category("NotWorking")]   // Uses WebTest.Run, which is broken
                public void AddNode ()
                {
                        new WebTest (new HandlerInvoker (AddNode_delegate)).Run 
();
@@ -119,6 +120,7 @@
 
                [Test]
                [Category("NunitWeb")]
+               [Category("NotWorking")]   // Uses WebTest.Run, which is broken
                public void AddNode2_nullParent ()
                {
                        new WebTest (new HandlerInvoker 
(AddNode2_nullParent_delegate)).Run ();
@@ -132,6 +134,7 @@
 
                [Test]
                [Category("NunitWeb")]
+               [Category("NotWorking")]   // Uses WebTest.Run, which is broken
                public void AddNode2 ()
                {
                        new WebTest (new HandlerInvoker 
(AddNode2_delegate)).Run ();
@@ -142,38 +145,40 @@
                        StaticPoker poker = new StaticPoker ();
                        poker.DoAddNode (new SiteMapNode (poker, "childKey", 
"childUrl"),
                                         new SiteMapNode (poker, "parentKey", 
"parentUrl"));
-               }
-
-               [Test]
-               [Category ("NunitWeb")]
-               public void IsAccessibleFrom1 ()
-               {
-                       new WebTest (new HandlerInvoker 
(IsAccessibleFrom1_delegate)).Run ();
-               }
-
-               static public void IsAccessibleFrom1_delegate ()
-               {
-                       StaticPoker p = new StaticPoker ();
-                       SiteMapNode n = new SiteMapNode (p, "childKey", 
"http://childUrl/";);
-                       n.Roles = null;
-                       bool b = p.IsAccessibleToUser (HttpContext.Current, n);
-                       Assert.IsTrue (b, "#1");
-               }
-               [Test]
-               [Category ("NunitWeb")]
-               public void IsAccessibleFrom2 ()
-               {
-                       //new WebTest (new HandlerInvoker 
(IsAccessibleFrom2_delegate)).Run ();
-                       new WebTest (PageInvoker.CreateOnLoad 
(IsAccessibleFrom2_delegate)).Run();
-               }
-
-               static public void IsAccessibleFrom2_delegate (Page pp)
-               {
-                       StaticPoker p = new StaticPoker ();
-                       SiteMapNode n = new SiteMapNode (p, "childKey", 
"http://childUrl/";);
-                       n.Roles = null;
-                       bool b = p.IsAccessibleToUser (HttpContext.Current, n);
-               }
+               }
+
+               [Test]
+               [Category ("NunitWeb")]
+               [Category("NotWorking")]   // Uses WebTest.Run, which is broken
+               public void IsAccessibleFrom1 ()
+               {
+                       new WebTest (new HandlerInvoker 
(IsAccessibleFrom1_delegate)).Run ();
+               }
+
+               static public void IsAccessibleFrom1_delegate ()
+               {
+                       StaticPoker p = new StaticPoker ();
+                       SiteMapNode n = new SiteMapNode (p, "childKey", 
"http://childUrl/";);
+                       n.Roles = null;
+                       bool b = p.IsAccessibleToUser (HttpContext.Current, n);
+                       Assert.IsTrue (b, "#1");
+               }
+               [Test]
+               [Category ("NunitWeb")]
+               [Category("NotWorking")]   // Uses WebTest.Run, which is broken
+               public void IsAccessibleFrom2 ()
+               {
+                       //new WebTest (new HandlerInvoker 
(IsAccessibleFrom2_delegate)).Run ();
+                       new WebTest (PageInvoker.CreateOnLoad 
(IsAccessibleFrom2_delegate)).Run();
+               }
+
+               static public void IsAccessibleFrom2_delegate (Page pp)
+               {
+                       StaticPoker p = new StaticPoker ();
+                       SiteMapNode n = new SiteMapNode (p, "childKey", 
"http://childUrl/";);
+                       n.Roles = null;
+                       bool b = p.IsAccessibleToUser (HttpContext.Current, n);
+               }
        }
 }
 

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

Reply via email to