add missing tests

This commit is contained in:
Tommy Parnell
2016-11-08 23:14:28 -05:00
parent 9b5bd3769f
commit 2885118175

View File

@@ -97,6 +97,15 @@ namespace FluentUriBuilder.Tests
Assert.Equal(url.Host, "yodawg.com");
}
[Fact]
public void AddParamWithNoValue()
{
var url = new UriBuilder("http://awesome.com")
.WithParameter("awesome", "yodawg")
.WithParameter("fun", null);
Assert.Equal("http://awesome.com/?awesome=yodawg&fun", url.Uri.ToString());
}
[Fact]
public void TestAddTwoUrlParameters()
{