[System.Web] Add test for 9c254393200eb6a23bea67c053ed467a023cc0e4
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 8 Jan 2016 19:54:09 +0000 (20:54 +0100)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 8 Jan 2016 19:54:54 +0000 (20:54 +0100)
Test case from https://bugzilla.xamarin.com/show_bug.cgi?id=13909

mcs/class/System.Web.Routing/Test/System.Web.Routing/RouteCollectionTest.cs

index a6f26b6b6f6dfc151d114892ac1f0259ce7dadc0..c2d2d51a28d30b629d9e2d72d8ff3620f0881bb2 100644 (file)
@@ -916,5 +916,15 @@ namespace MonoTests.System.Web.Routing
                        Assert.AreEqual (typeof (PageRouteHandler), rd.RouteHandler.GetType (), "#A4-3");
                        Assert.IsFalse (((PageRouteHandler) rd.RouteHandler).CheckPhysicalUrlAccess, "#A4-4");
                }
+               
+               [Test] // https://bugzilla.xamarin.com/show_bug.cgi?id=13909
+               public void MapPageRoute_Bug13909 ()
+               {
+                       var c = new RouteCollection ();
+
+                       c.MapPageRoute("test", "test", "~/test.aspx");
+                       c.Clear();
+                       c.MapPageRoute("test", "test", "~/test.aspx");
+               }
        }
 }