New test.
[mono.git] / mcs / class / System.Web / Test / System.Web / HttpRequestTest.cs
index 6ce9b17da55d6b409f74d05653a75f9664e17393..ffad4250d74f924216078f6bdf264824f5de9f00 100644 (file)
@@ -141,8 +141,26 @@ namespace MonoTests.System.Web {
                        HttpRequest r = new HttpRequest ("file", url, qs);
                        Assert.AreEqual("\u00e4", r.QueryString["umlaut"]);
                }
+
+               [Test]
+               [Category ("NunitWeb")]
+               public void Test_PhysicalApplicationPath ()
+               {
+                       WebTest t = new WebTest (new HandlerInvoker (new HandlerDelegate (
+                               PhysicalApplicationPathDelegate)));
+                       t.Run ();
+               }
+
+               static public void PhysicalApplicationPathDelegate ()
+               {
+                       HttpRequest r = HttpContext.Current.Request;
+                       string pap = r.PhysicalApplicationPath;
+                       Assert.IsTrue (pap.EndsWith (Path.DirectorySeparatorChar.ToString()), "#1");
+                       Assert.AreEqual (Path.GetFullPath (pap), pap, "#2");
+               }
+
                [Test]
-               [Category("aaa")]
+               [Category ("NunitWeb")]
                public void Test_MapPath ()
                {
                        WebTest t = new WebTest (new HandlerInvoker (new HandlerDelegate (