summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2008-12-01 07:37:00 -0800
committerAndrew <andrewarnott@gmail.com>2008-12-01 07:37:00 -0800
commit9c85108a3a0b242c4ed5ae33da52df16c95c0ce3 (patch)
tree7aea92ec71dab0d1932f277cd77e4a2823b0c211 /src/DotNetOpenAuth.Test
parent98f10d7920e2d957f6aff937b9dd253f84145668 (diff)
downloadDotNetOpenAuth-9c85108a3a0b242c4ed5ae33da52df16c95c0ce3.zip
DotNetOpenAuth-9c85108a3a0b242c4ed5ae33da52df16c95c0ce3.tar.gz
DotNetOpenAuth-9c85108a3a0b242c4ed5ae33da52df16c95c0ce3.tar.bz2
Lots of stylecop work.
Diffstat (limited to 'src/DotNetOpenAuth.Test')
-rw-r--r--src/DotNetOpenAuth.Test/Mocks/MockHttpRequest.cs2
-rw-r--r--src/DotNetOpenAuth.Test/OpenId/TestSupport.cs4
-rw-r--r--src/DotNetOpenAuth.Test/OpenId/UriIdentifierTests.cs4
-rw-r--r--src/DotNetOpenAuth.Test/OpenId/XriIdentifierTests.cs2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/DotNetOpenAuth.Test/Mocks/MockHttpRequest.cs b/src/DotNetOpenAuth.Test/Mocks/MockHttpRequest.cs
index 94d6f81..6c853af 100644
--- a/src/DotNetOpenAuth.Test/Mocks/MockHttpRequest.cs
+++ b/src/DotNetOpenAuth.Test/Mocks/MockHttpRequest.cs
@@ -133,7 +133,7 @@ namespace DotNetOpenAuth.Test.Mocks {
directedIdentityAssignedIdentifier,
directedIdentityAssignedIdentifier,
providerEndpoint.ProviderEndpoint,
- new string[] { providerEndpoint.Protocol.ClaimedIdentifierServiceTypeURI },
+ providerEndpoint.ProviderDescription,
10,
10);
this.RegisterMockXrdsResponse(identityEndpoint);
diff --git a/src/DotNetOpenAuth.Test/OpenId/TestSupport.cs b/src/DotNetOpenAuth.Test/OpenId/TestSupport.cs
index 665c041..c80fa97 100644
--- a/src/DotNetOpenAuth.Test/OpenId/TestSupport.cs
+++ b/src/DotNetOpenAuth.Test/OpenId/TestSupport.cs
@@ -144,11 +144,11 @@ namespace DotNetOpenAuth.Test.OpenId {
}
internal static ServiceEndpoint GetServiceEndpoint(Scenarios scenario, ProtocolVersion providerVersion, int servicePriority, bool useSsl) {
+ var providerEndpoint = new ProviderEndpointDescription(GetFullUrl("/" + ProviderPage, null, useSsl), new string[] { Protocol.Lookup(providerVersion).ClaimedIdentifierServiceTypeURI });
return ServiceEndpoint.CreateForClaimedIdentifier(
GetIdentityUrl(scenario, providerVersion, useSsl),
GetDelegateUrl(scenario, useSsl),
- GetFullUrl("/" + ProviderPage, null, useSsl),
- new string[] { Protocol.Lookup(providerVersion).ClaimedIdentifierServiceTypeURI },
+ providerEndpoint,
servicePriority,
10);
}
diff --git a/src/DotNetOpenAuth.Test/OpenId/UriIdentifierTests.cs b/src/DotNetOpenAuth.Test/OpenId/UriIdentifierTests.cs
index f4433f0..91dd5f4 100644
--- a/src/DotNetOpenAuth.Test/OpenId/UriIdentifierTests.cs
+++ b/src/DotNetOpenAuth.Test/OpenId/UriIdentifierTests.cs
@@ -375,8 +375,8 @@ namespace DotNetOpenAuth.Test.OpenId {
Assert.AreSame(protocol, se.Protocol);
Assert.AreEqual(claimedId, se.ClaimedIdentifier);
Assert.AreEqual(expectedLocalId, se.ProviderLocalIdentifier);
- Assert.AreEqual(expectSreg ? 2 : 1, se.ProviderSupportedServiceTypeUris.Length);
- Assert.IsTrue(Array.IndexOf(se.ProviderSupportedServiceTypeUris, protocol.ClaimedIdentifierServiceTypeURI) >= 0);
+ Assert.AreEqual(expectSreg ? 2 : 1, se.ProviderSupportedServiceTypeUris.Count);
+ Assert.IsTrue(se.ProviderSupportedServiceTypeUris.Contains(protocol.ClaimedIdentifierServiceTypeURI));
// TODO: re-enable this line once extensions support is added back in.
////Assert.AreEqual(expectSreg, se.IsExtensionSupported(new ClaimsRequest()));
diff --git a/src/DotNetOpenAuth.Test/OpenId/XriIdentifierTests.cs b/src/DotNetOpenAuth.Test/OpenId/XriIdentifierTests.cs
index b6b2e55..d84b8b1 100644
--- a/src/DotNetOpenAuth.Test/OpenId/XriIdentifierTests.cs
+++ b/src/DotNetOpenAuth.Test/OpenId/XriIdentifierTests.cs
@@ -463,7 +463,7 @@ uEyb50RJ7DWmXctSC0b3eymZ2lSXxAWNOsNy
if (expectedClaimedIdentifier != null) {
Assert.IsNotNull(se);
Assert.AreEqual(expectedClaimedIdentifier, se.ClaimedIdentifier.ToString(), "i-name {0} discovery resulted in unexpected CanonicalId", iname);
- Assert.IsTrue(se.ProviderSupportedServiceTypeUris.Length > 0);
+ Assert.IsTrue(se.ProviderSupportedServiceTypeUris.Count > 0);
} else {
Assert.IsNull(se);
}