summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.AspNet.Test/UriHelperTest.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-02-06 17:03:59 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2012-03-01 19:36:43 -0800
commit9ffd411fa2115f5cdc4d2c0a473e55b0c82f7dc1 (patch)
tree02130b66c4a6df37923c424a30af785bb85f4a1e /src/DotNetOpenAuth.AspNet.Test/UriHelperTest.cs
parent34b6136b2a638596e44736d96845967e5fde3af6 (diff)
downloadDotNetOpenAuth-9ffd411fa2115f5cdc4d2c0a473e55b0c82f7dc1.zip
DotNetOpenAuth-9ffd411fa2115f5cdc4d2c0a473e55b0c82f7dc1.tar.gz
DotNetOpenAuth-9ffd411fa2115f5cdc4d2c0a473e55b0c82f7dc1.tar.bz2
Some StyleCop fixes for ASP.NET team's contribution.
Diffstat (limited to 'src/DotNetOpenAuth.AspNet.Test/UriHelperTest.cs')
-rw-r--r--src/DotNetOpenAuth.AspNet.Test/UriHelperTest.cs44
1 files changed, 20 insertions, 24 deletions
diff --git a/src/DotNetOpenAuth.AspNet.Test/UriHelperTest.cs b/src/DotNetOpenAuth.AspNet.Test/UriHelperTest.cs
index 53a2b52..ea78a76 100644
--- a/src/DotNetOpenAuth.AspNet.Test/UriHelperTest.cs
+++ b/src/DotNetOpenAuth.AspNet.Test/UriHelperTest.cs
@@ -1,17 +1,14 @@
-using System;
-using DotNetOpenAuth.AspNet.Clients;
-using NUnit.Framework;
+namespace DotNetOpenAuth.AspNet.Test {
+ using System;
+ using DotNetOpenAuth.AspNet.Clients;
+ using NUnit.Framework;
-namespace DotNetOpenAuth.AspNet.Test
-{
- [TestFixture]
- public class UriHelperTest
- {
- [TestCase]
- public void TestAttachQueryStringParameterMethod()
- {
- // Arrange
- string[] input = new string[]
+ [TestFixture]
+ public class UriHelperTest {
+ [TestCase]
+ public void TestAttachQueryStringParameterMethod() {
+ // Arrange
+ string[] input = new string[]
{
"http://x.com",
"https://xxx.com/one?s=123",
@@ -19,7 +16,7 @@ namespace DotNetOpenAuth.AspNet.Test
"https://zzz.com/default.aspx?name=sd"
};
- string[] expectedOutput = new string[]
+ string[] expectedOutput = new string[]
{
"http://x.com/?s=awesome",
"https://xxx.com/one?s=awesome",
@@ -27,15 +24,14 @@ namespace DotNetOpenAuth.AspNet.Test
"https://zzz.com/default.aspx?name=sd&s=awesome"
};
- for (int i = 0; i < input.Length; i++)
- {
- // Act
- var inputUrl = new Uri(input[i]);
- var outputUri = UriHelper.AttachQueryStringParameter(inputUrl, "s", "awesome");
+ for (int i = 0; i < input.Length; i++) {
+ // Act
+ var inputUrl = new Uri(input[i]);
+ var outputUri = UriHelper.AttachQueryStringParameter(inputUrl, "s", "awesome");
- // Assert
- Assert.AreEqual(expectedOutput[i], outputUri.ToString());
- }
- }
- }
+ // Assert
+ Assert.AreEqual(expectedOutput[i], outputUri.ToString());
+ }
+ }
+ }
}