示例#1
0
        public void TestAddApiSuffixBaseUri(string input, string suffix, string expectedResult)
        {
            Uri baseUri = new Uri(input);
            Uri result  = UriExtensions.AddApiSuffixBase(baseUri, suffix);

            Assert.Equal(result.ToString(), expectedResult);
        }
示例#2
0
        public void TestAddApiSuffixBaseString(string input, string suffix, string expectedResult)
        {
            string result = UriExtensions.AddApiSuffixBase(input, suffix);

            Assert.Equal(result, expectedResult);
        }