public void ShouldCreateUrlWithoutEndingSlash() { //given var uri = new Uri("http://noslash/uri"); //when var endpoint = new UPSHttpClient(uri, "dummy", "123").CreateEndpoint("test"); //then Assert.AreEqual("http://noslash/uri/test", endpoint); }