Exemple #1
0
        public void GivenVirtualDirectoryIsJustSlash_WhenModifyUrl_ThenSlashPrependsUrl()
        {
            var modifier = new VirtualDirectoryPrepender("/");
            var url      = modifier.Modify("/test");

            url.ShouldEqual("/test");
        }
Exemple #2
0
        public void GivenVirtualDirectoryIsSlashAndDirectoryName_WhenModifyUrl_ThenSlashDirectoryNamePrependsUrl()
        {
            var modifier = new VirtualDirectoryPrepender("/base");
            var url      = modifier.Modify("/test");

            url.ShouldEqual("/base/test");
        }
 public void GivenVirtualDirectoryIsSlashAndDirectoryName_WhenModifyUrl_ThenSlashDirectoryNamePrependsUrl()
 {
     var modifier = new VirtualDirectoryPrepender("/base");
     var url = modifier.Modify("/test");
     url.ShouldEqual("/base/test");
 }
 public void GivenVirtualDirectoryIsJustSlash_WhenModifyUrl_ThenSlashPrependsUrl()
 {
     var modifier = new VirtualDirectoryPrepender("/");
     var url = modifier.Modify("/test");
     url.ShouldEqual("/test");
 }