public void TestStripApiSuffixBaseUri(string input, string suffix, string expectedResult) { Uri baseUri = new Uri(input); Uri result = UriExtensions.StripApiSuffixBase(baseUri, suffix); Assert.Equal(result.ToString(), expectedResult); }
public void TestStripApiSuffixBaseString(string input, string suffix, string expectedResult) { string result = UriExtensions.StripApiSuffixBase(input, suffix); Assert.Equal(result, expectedResult); }