diff options
Diffstat (limited to 'src/DotNetOpenId.Test/UriUtilTest.cs')
-rw-r--r-- | src/DotNetOpenId.Test/UriUtilTest.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/DotNetOpenId.Test/UriUtilTest.cs b/src/DotNetOpenId.Test/UriUtilTest.cs index aac92e1..4e2793d 100644 --- a/src/DotNetOpenId.Test/UriUtilTest.cs +++ b/src/DotNetOpenId.Test/UriUtilTest.cs @@ -44,6 +44,16 @@ namespace DotNetOpenId.Test { Assert.AreEqual("http://baseline.org/page?a=b&c%2fd=e%2ff&g=h", uri.Uri.AbsoluteUri);
}
+ [Test, ExpectedException(typeof(ArgumentNullException))]
+ public void AppendQueryArgsNullUriBuilder() {
+ UriUtil.AppendQueryArgs(null, new Dictionary<string, string>());
+ }
+
+ [Test]
+ public void AppendQueryArgsNullDictionary() {
+ UriUtil.AppendQueryArgs(new UriBuilder(), null);
+ }
+
[Test]
public void UriBuilderToStringWithImpliedPorts() {
Assert.AreEqual("http://localhost/p?q#f",
|