Skip to content
This repository has been archived by the owner on Mar 20, 2019. It is now read-only.

Commit

Permalink
Whitespace changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Apr 3, 2008
1 parent 5f6fbca commit 845d21f
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions src/DotNetOpenId.Test/UriUtilTest.cs
Expand Up @@ -5,28 +5,28 @@
using System.Collections.Specialized;

namespace DotNetOpenId.Test {
[TestFixture]
public class UriUtilTest {
[Test]
public void CreateQueryString() {
var args = new Dictionary<string, string>();
args.Add("a", "b");
args.Add("c/d", "e/f");
Assert.AreEqual("a=b&c%2fd=e%2ff", UriUtil.CreateQueryString(args));
}
[TestFixture]
public class UriUtilTest {
[Test]
public void CreateQueryString() {
var args = new Dictionary<string, string>();
args.Add("a", "b");
args.Add("c/d", "e/f");
Assert.AreEqual("a=b&c%2fd=e%2ff", UriUtil.CreateQueryString(args));
}

[Test]
public void AppendQueryArgs() {
UriBuilder uri = new UriBuilder("http://baseline.org/page");
var args = new Dictionary<string, string>();
args.Add("a", "b");
args.Add("c/d", "e/f");
UriUtil.AppendQueryArgs(uri, args);
Assert.AreEqual("http://baseline.org/page?a=b&c%2fd=e%2ff", uri.Uri.AbsoluteUri);
args.Clear();
args.Add("g", "h");
UriUtil.AppendQueryArgs(uri, args);
Assert.AreEqual("http://baseline.org/page?a=b&c%2fd=e%2ff&g=h", uri.Uri.AbsoluteUri);
}
}
[Test]
public void AppendQueryArgs() {
UriBuilder uri = new UriBuilder("http://baseline.org/page");
var args = new Dictionary<string, string>();
args.Add("a", "b");
args.Add("c/d", "e/f");
UriUtil.AppendQueryArgs(uri, args);
Assert.AreEqual("http://baseline.org/page?a=b&c%2fd=e%2ff", uri.Uri.AbsoluteUri);
args.Clear();
args.Add("g", "h");
UriUtil.AppendQueryArgs(uri, args);
Assert.AreEqual("http://baseline.org/page?a=b&c%2fd=e%2ff&g=h", uri.Uri.AbsoluteUri);
}
}
}

0 comments on commit 845d21f

Please sign in to comment.