Beispiel #1
0
 public void GetNormalizedVirtualPath()
 {
     Assert.AreEqual(null, WebUtils.GetNormalizedVirtualPath(null));
     Assert.AreEqual(String.Empty, WebUtils.GetNormalizedVirtualPath(String.Empty));
     Assert.AreEqual("~test.aspx", WebUtils.GetNormalizedVirtualPath("~test.aspx"));
     Assert.AreEqual("/test.aspx", WebUtils.GetNormalizedVirtualPath("~/test.aspx"));
     Assert.AreEqual("/Complex.Path/~/test.aspx", WebUtils.GetNormalizedVirtualPath("~/Complex.Path/~/test.aspx"));
 }