diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-06-06 16:46:15 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-06-06 16:46:15 -0700 |
commit | 22366139f5bc3b5d308d78b6620b517bc794042c (patch) | |
tree | 45c5613f0e528f6b827441fe6671f9a4c89a3920 /src/DotNetOpenAuth.Test | |
parent | ddf0b1632e9ccceca514bfee6f65c5786b078dcd (diff) | |
download | DotNetOpenAuth-22366139f5bc3b5d308d78b6620b517bc794042c.zip DotNetOpenAuth-22366139f5bc3b5d308d78b6620b517bc794042c.tar.gz DotNetOpenAuth-22366139f5bc3b5d308d78b6620b517bc794042c.tar.bz2 |
Fixed some failing unit tests and some associated product bugs.
Diffstat (limited to 'src/DotNetOpenAuth.Test')
3 files changed, 7 insertions, 7 deletions
diff --git a/src/DotNetOpenAuth.Test/OAuth/ChannelElements/SigningBindingElementBaseTests.cs b/src/DotNetOpenAuth.Test/OAuth/ChannelElements/SigningBindingElementBaseTests.cs index 32ccf9e..6e566c8 100644 --- a/src/DotNetOpenAuth.Test/OAuth/ChannelElements/SigningBindingElementBaseTests.cs +++ b/src/DotNetOpenAuth.Test/OAuth/ChannelElements/SigningBindingElementBaseTests.cs @@ -64,7 +64,7 @@ namespace DotNetOpenAuth.Test.ChannelElements { internal static UnauthorizedTokenRequest CreateTestRequestTokenMessage(MessageDescriptionCollection messageDescriptions, MessageReceivingEndpoint endpoint) { endpoint = endpoint ?? new MessageReceivingEndpoint("https://www.google.com/accounts/OAuthGetRequestToken", HttpDeliveryMethods.AuthorizationHeaderRequest | HttpDeliveryMethods.GetRequest); - UnauthorizedTokenRequest message = new UnauthorizedTokenRequest(endpoint, Protocol.Default.Version); + UnauthorizedTokenRequest message = new UnauthorizedTokenRequest(endpoint, Protocol.V10.Version); message.ConsumerKey = "nerdbank.org"; ((ITamperResistantOAuthMessage)message).ConsumerSecret = "nerdbanksecret"; var signedMessage = (ITamperResistantOAuthMessage)message; diff --git a/src/DotNetOpenAuth.Test/OAuth/ChannelElements/UriOrOobEncodingTests.cs b/src/DotNetOpenAuth.Test/OAuth/ChannelElements/UriOrOobEncodingTests.cs index 6616cc3..40fc93e 100644 --- a/src/DotNetOpenAuth.Test/OAuth/ChannelElements/UriOrOobEncodingTests.cs +++ b/src/DotNetOpenAuth.Test/OAuth/ChannelElements/UriOrOobEncodingTests.cs @@ -1,5 +1,5 @@ //----------------------------------------------------------------------- -// <copyright file="UriOrOobEncoderTests.cs" company="Andrew Arnott"> +// <copyright file="UriOrOobEncodingTests.cs" company="Andrew Arnott"> // Copyright (c) Andrew Arnott. All rights reserved. // </copyright> //----------------------------------------------------------------------- @@ -9,8 +9,8 @@ namespace DotNetOpenAuth.Test.OAuth.ChannelElements { using System.Collections.Generic; using System.Linq; using System.Text; - using Microsoft.VisualStudio.TestTools.UnitTesting; using DotNetOpenAuth.OAuth.ChannelElements; + using Microsoft.VisualStudio.TestTools.UnitTesting; [TestClass] public class UriOrOobEncodingTests : TestBase { @@ -22,11 +22,11 @@ namespace DotNetOpenAuth.Test.OAuth.ChannelElements { } /// <summary> - /// Verifies encoding null URIs results in the value "oob". + /// Verifies null value encoding /// </summary> [TestMethod] - public void EncodeNullValueToOob() { - Assert.AreEqual("oob", this.encoding.Encode(null)); + public void NullValueEncoding() { + Assert.AreEqual("oob", this.encoding.EncodedNullValue); } /// <summary> diff --git a/src/DotNetOpenAuth.Test/OAuth/ProtocolTests.cs b/src/DotNetOpenAuth.Test/OAuth/ProtocolTests.cs index a6c7306..ce8070b 100644 --- a/src/DotNetOpenAuth.Test/OAuth/ProtocolTests.cs +++ b/src/DotNetOpenAuth.Test/OAuth/ProtocolTests.cs @@ -12,7 +12,7 @@ namespace DotNetOpenAuth.Test { public class ProtocolTests { [TestMethod] public void Default() { - Assert.AreSame(Protocol.V10, Protocol.Default); + Assert.AreSame(Protocol.V10a, Protocol.Default); } [TestMethod] |