diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-12-21 10:22:23 -0800 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2008-12-21 10:22:23 -0800 |
commit | 08ab45d4b14b9360cfe2ad9b667cf7c0acf86c98 (patch) | |
tree | a7e4659613a3b05874df95fdbbcccafceabf1539 /src/DotNetOpenAuth.Test | |
parent | 9d7dcf58fe0974d0beb7ca29608827b3efdab051 (diff) | |
download | DotNetOpenAuth-08ab45d4b14b9360cfe2ad9b667cf7c0acf86c98.zip DotNetOpenAuth-08ab45d4b14b9360cfe2ad9b667cf7c0acf86c98.tar.gz DotNetOpenAuth-08ab45d4b14b9360cfe2ad9b667cf7c0acf86c98.tar.bz2 |
Cleaned up hundreds of StyleCop warnings.
Diffstat (limited to 'src/DotNetOpenAuth.Test')
-rw-r--r-- | src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestBase.cs | 11 | ||||
-rw-r--r-- | src/DotNetOpenAuth.Test/OpenId/Extensions/SimpleRegistrationTests.cs | 17 |
2 files changed, 17 insertions, 11 deletions
diff --git a/src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestBase.cs b/src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestBase.cs index 4da8dfe..95026d4 100644 --- a/src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestBase.cs +++ b/src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestBase.cs @@ -7,20 +7,19 @@ namespace DotNetOpenAuth.Test.OpenId.Extensions {
using System;
using System.Collections.Generic;
+ using System.Collections.ObjectModel;
using System.Linq;
- using DotNetOpenId.Extensions;
+ using DotNetOpenAuth.Messaging;
using DotNetOpenAuth.OpenId;
- using Microsoft.VisualStudio.TestTools.UnitTesting;
using DotNetOpenAuth.OpenId.Messages;
- using System.Collections.ObjectModel;
- using DotNetOpenAuth.Messaging;
using DotNetOpenAuth.Test.Messaging;
+ using Microsoft.VisualStudio.TestTools.UnitTesting;
public class ExtensionTestBase : OpenIdTestBase {
protected const ProtocolVersion Version = ProtocolVersion.V20;
[TestInitialize]
- public virtual void Setup() {
+ public override void SetUp() {
base.SetUp();
}
@@ -59,7 +58,7 @@ namespace DotNetOpenAuth.Test.OpenId.Extensions { response.Extensions.Add(extensionResponse);
}
- op.Channel.Send(response); + op.Channel.Send(response);
});
coordinator.Run();
}
diff --git a/src/DotNetOpenAuth.Test/OpenId/Extensions/SimpleRegistrationTests.cs b/src/DotNetOpenAuth.Test/OpenId/Extensions/SimpleRegistrationTests.cs index 7f2592e..c41ccb8 100644 --- a/src/DotNetOpenAuth.Test/OpenId/Extensions/SimpleRegistrationTests.cs +++ b/src/DotNetOpenAuth.Test/OpenId/Extensions/SimpleRegistrationTests.cs @@ -1,20 +1,27 @@ -namespace DotNetOpenAuth.Test.OpenId.Extensions {
+//-----------------------------------------------------------------------
+// <copyright file="SimpleRegistrationTests.cs" company="Andrew Arnott">
+// Copyright (c) Andrew Arnott. All rights reserved.
+// </copyright>
+//-----------------------------------------------------------------------
+
+namespace DotNetOpenAuth.Test.OpenId.Extensions {
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
+ using DotNetOpenAuth.OpenId;
using DotNetOpenAuth.OpenId.Extensions.SimpleRegistration;
using Microsoft.VisualStudio.TestTools.UnitTesting;
- using DotNetOpenAuth.OpenId;
[TestClass]
public class SimpleRegistrationTests : ExtensionTestBase {
[TestMethod]
public void Simple() {
- Roundtrip(Protocol.Default,
- new[] { new ClaimsRequest() { Nickname = DemandLevel.Request } },
- new[] { new ClaimsResponse() { Nickname = "Andrew" } });
+ ClaimsRequest request = new ClaimsRequest() { Nickname = DemandLevel.Request };
+ ClaimsResponse response = new ClaimsResponse(Constants.sreg_ns);
+ response.Nickname = "Andrew";
+ Roundtrip(Protocol.Default, new[] { request }, new[] { response });
}
////[TestMethod]
|