public void Combine_WithValidInput_ReturnsCombinedUri(string host, string path, string expected) { Uri result = UriTools.Combine(host, path); Assert.Equal(expected, result.OriginalString); }
public void Combine_WithHostNull_ThrowsException() { Exception exception = Record.Exception(() => UriTools.Combine(null, "path.html")); Assert.IsType <ArgumentNullException>(exception); }
public void Combine_WithPathNull_ThrowsException() { Exception exception = Record.Exception(() => UriTools.Combine("http://foo.bar", null)); Assert.IsType <ArgumentNullException>(exception); }