diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-09-13 18:07:20 -0700 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2008-09-13 18:07:20 -0700 |
commit | 76cf7ef65fb66bfd44f9672f50e1901daa91126f (patch) | |
tree | 852fffd2dd1bbf36b9e7cef9e2d971449e179cb1 /src/DotNetOAuth.Test/Messaging/Bindings/StandardExpirationBindingElementTests.cs | |
parent | e4e249ea522d4d79622f94a01e41c4d92d3612f4 (diff) | |
download | DotNetOpenAuth-76cf7ef65fb66bfd44f9672f50e1901daa91126f.zip DotNetOpenAuth-76cf7ef65fb66bfd44f9672f50e1901daa91126f.tar.gz DotNetOpenAuth-76cf7ef65fb66bfd44f9672f50e1901daa91126f.tar.bz2 |
Simplified tests slightly.
Diffstat (limited to 'src/DotNetOAuth.Test/Messaging/Bindings/StandardExpirationBindingElementTests.cs')
-rw-r--r-- | src/DotNetOAuth.Test/Messaging/Bindings/StandardExpirationBindingElementTests.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DotNetOAuth.Test/Messaging/Bindings/StandardExpirationBindingElementTests.cs b/src/DotNetOAuth.Test/Messaging/Bindings/StandardExpirationBindingElementTests.cs index 6ba1cfc..bbef6f2 100644 --- a/src/DotNetOAuth.Test/Messaging/Bindings/StandardExpirationBindingElementTests.cs +++ b/src/DotNetOAuth.Test/Messaging/Bindings/StandardExpirationBindingElementTests.cs @@ -19,20 +19,20 @@ namespace DotNetOAuth.Test.Messaging.Bindings { message.Recipient = new Uri("http://localtest");
((IExpiringProtocolMessage)message).UtcCreationDate = DateTime.Parse("1/1/1990");
- Channel channel = CreateChannel(MessageProtection.Expiration, MessageProtection.Expiration);
+ Channel channel = CreateChannel(MessageProtection.Expiration);
channel.Send(message);
Assert.IsTrue(DateTime.UtcNow - ((IExpiringProtocolMessage)message).UtcCreationDate < TimeSpan.FromSeconds(3), "The timestamp on the message was not set on send.");
}
[TestMethod]
public void VerifyGoodTimestampIsAccepted() {
- this.Channel = CreateChannel(MessageProtection.Expiration, MessageProtection.Expiration);
+ this.Channel = CreateChannel(MessageProtection.Expiration);
this.ParameterizedReceiveProtectedTest(DateTime.UtcNow, false);
}
[TestMethod, ExpectedException(typeof(ExpiredMessageException))]
public void VerifyBadTimestampIsRejected() {
- this.Channel = CreateChannel(MessageProtection.Expiration, MessageProtection.Expiration);
+ this.Channel = CreateChannel(MessageProtection.Expiration);
this.ParameterizedReceiveProtectedTest(DateTime.UtcNow - StandardExpirationBindingElement.DefaultMaximumMessageAge - TimeSpan.FromSeconds(1), false);
}
}
|