public void GetFileName1()
 {
     Assert.AreEqual("", VPU.GetFileName("/"));
     Assert.AreEqual("hola", VPU.GetFileName("/hola"));
     Assert.AreEqual("hola", VPU.GetFileName("/hola/"));
     Assert.AreEqual("hi", VPU.GetFileName("/hi/there/.."));
     Assert.AreEqual("there", VPU.GetFileName("/hi/there/."));
 }
        public static void GetFileName4_Load(Page p)
        {
            Assert.AreEqual(NunitWebAppName, VPU.GetFileName("~/"));
            Assert.AreEqual("hola", VPU.GetFileName("~/hola"));
            Assert.AreEqual("hola", VPU.GetFileName("~/hola/"));
            Assert.AreEqual("hi", VPU.GetFileName("~/hi/there/.."));
            Assert.AreEqual("there", VPU.GetFileName("~/hi/there/."));

            Assert.AreEqual(NunitWebAppName, VPU.GetFileName("~"));
            Assert.AreEqual("", VPU.GetFileName("~/.."));
            Assert.AreEqual("", VPU.GetFileName("~/../"));
            Assert.AreEqual("hi", VPU.GetFileName("~/../hi"));
            Assert.AreEqual("hi", VPU.GetFileName("~/../hi/"));
        }
 public void GetFileName3()
 {
     VPU.GetFileName("");
 }
 public void GetFileName2()
 {
     VPU.GetFileName(null);
 }
 public void GetFileName5()
 {
     VPU.GetFileName("hi");
 }
 public void GetFileName()
 {
     Assert.AreEqual("index.aspx", VPU.GetFileName("/hi/index.aspx"), "A1");
     Assert.AreEqual("index.aspx", VPU.GetFileName("/hi/index.aspx/"), "A1");
     Assert.AreEqual("hi", VPU.GetFileName("/hi/"), "A2");
 }