Пример #1
0
        public void EncodePartialUrl()
        {
            var result = UriHelper.BuildRelative(new PathString("/un?escaped/base"), new PathString("/un?escaped"),
                                                 new QueryString("?name=val%23ue"), new FragmentString("#my%20value"));

            Assert.Equal("/un%3Fescaped/base/un%3Fescaped?name=val%23ue#my%20value", result);
        }
Пример #2
0
        public void EncodeEmptyPartialUrl()
        {
            var result = UriHelper.BuildRelative();

            Assert.Equal("/", result);
        }