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

Commit

Permalink
Fixed some unit test failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Mar 25, 2008
1 parent 8d03ca7 commit ec7f15f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions src/DotNetOpenId.Test/RelyingParty/OpenIdRelyingPartyTest.cs
Expand Up @@ -9,7 +9,7 @@

namespace DotNetOpenId.Test.RelyingParty {
[TestFixture]
public class OpenIdConsumerTest {
public class OpenIdRelyingPartyTest {
IRelyingPartyApplicationStore store;
UriIdentifier simpleOpenId = new UriIdentifier("http://nonexistant.openid.com");
Realm simpleRealm = new Realm("http://consumertest.openid.com");
Expand All @@ -27,13 +27,12 @@ public class OpenIdConsumerTest {
}

[Test]
[ExpectedException(typeof(ArgumentNullException))]
public void CtorWithNullQuery() {
public void CtorWithNullRequestUri() {
new OpenIdRelyingParty(store, null);
}

[Test]
[ExpectedException(typeof(ArgumentNullException), UserMessage = "Until this is a supported scenario, an exception should be thrown right away.")]
[ExpectedException(typeof(NotSupportedException), UserMessage = "Until this is a supported scenario, an exception should be thrown right away.")]
public void CtorWithNullStore() {
var consumer = new OpenIdRelyingParty(null, new Uri("http://localhost/hi"));
}
Expand Down
2 changes: 1 addition & 1 deletion src/DotNetOpenId/Protocol.cs
Expand Up @@ -60,7 +60,7 @@ internal partial class Protocol {
/// <summary>
/// The default (or most recent) supported version of the OpenID protocol.
/// </summary>
public readonly static Protocol Default = v20;
public readonly static Protocol Default = AllVersions[0];
/// <summary>
/// Attempts to detect the right OpenID protocol version based on the contents
/// of an incoming query string.
Expand Down
2 changes: 1 addition & 1 deletion src/DotNetOpenId/RelyingParty/Token.cs
Expand Up @@ -42,7 +42,7 @@ public Token(ServiceEndpoint provider)
StreamWriter writer = new StreamWriter(shaStream);
Endpoint.Serialize(writer);
if (persistToken(Endpoint))
writer.WriteLine(Nonce.Code, true);
writer.WriteLine(Nonce.Code);
writer.Flush();

shaStream.Flush();
Expand Down

0 comments on commit ec7f15f

Please sign in to comment.