X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Web%2FTest%2FSystem.Web%2FHttpRequestTest.cs;h=ffad4250d74f924216078f6bdf264824f5de9f00;hb=6110fc90713ce59ff0996fcd3520e09a96575820;hp=6ce9b17da55d6b409f74d05653a75f9664e17393;hpb=6ad00319570793eba25189874dcefd8960796c73;p=mono.git diff --git a/mcs/class/System.Web/Test/System.Web/HttpRequestTest.cs b/mcs/class/System.Web/Test/System.Web/HttpRequestTest.cs index 6ce9b17da55..ffad4250d74 100644 --- a/mcs/class/System.Web/Test/System.Web/HttpRequestTest.cs +++ b/mcs/class/System.Web/Test/System.Web/HttpRequestTest.cs @@ -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 (