diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-02-10 00:27:37 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-02-10 00:27:37 -0800 |
commit | 982a8ac73e6fa9f178a0fb15d9e04c91515c3e49 (patch) | |
tree | 9099e5e9da5f109ffa7c1c1e752e736a74ff66dd /src/DotNetOpenAuth.Test/Messaging/Bindings/StandardExpirationBindingElementTests.cs | |
parent | 3be5be6f65fc857629677e69a357fd8c0d80d554 (diff) | |
parent | 5c6ae088e09a108759242e38aba723d50d7b083e (diff) | |
download | DotNetOpenAuth-982a8ac73e6fa9f178a0fb15d9e04c91515c3e49.zip DotNetOpenAuth-982a8ac73e6fa9f178a0fb15d9e04c91515c3e49.tar.gz DotNetOpenAuth-982a8ac73e6fa9f178a0fb15d9e04c91515c3e49.tar.bz2 |
Upgraded to VS2010.
Merge remote branch 'origin/v3.4-Dev10' into v3.4
Diffstat (limited to 'src/DotNetOpenAuth.Test/Messaging/Bindings/StandardExpirationBindingElementTests.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/Messaging/Bindings/StandardExpirationBindingElementTests.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/DotNetOpenAuth.Test/Messaging/Bindings/StandardExpirationBindingElementTests.cs b/src/DotNetOpenAuth.Test/Messaging/Bindings/StandardExpirationBindingElementTests.cs index 3cc792b..9ba433d 100644 --- a/src/DotNetOpenAuth.Test/Messaging/Bindings/StandardExpirationBindingElementTests.cs +++ b/src/DotNetOpenAuth.Test/Messaging/Bindings/StandardExpirationBindingElementTests.cs @@ -9,11 +9,11 @@ namespace DotNetOpenAuth.Test.Messaging.Bindings { using DotNetOpenAuth.Messaging; using DotNetOpenAuth.Messaging.Bindings; using DotNetOpenAuth.Test.Mocks; - using Microsoft.VisualStudio.TestTools.UnitTesting; + using NUnit.Framework; - [TestClass] + [TestFixture] public class StandardExpirationBindingElementTests : MessagingTestBase { - [TestMethod] + [TestCase] public void SendSetsTimestamp() { TestExpiringMessage message = new TestExpiringMessage(MessageTransport.Indirect); message.Recipient = new Uri("http://localtest"); @@ -24,13 +24,13 @@ namespace DotNetOpenAuth.Test.Messaging.Bindings { Assert.IsTrue(DateTime.UtcNow - ((IExpiringProtocolMessage)message).UtcCreationDate < TimeSpan.FromSeconds(3), "The timestamp on the message was not set on send."); } - [TestMethod] + [TestCase] public void VerifyGoodTimestampIsAccepted() { this.Channel = CreateChannel(MessageProtections.Expiration); this.ParameterizedReceiveProtectedTest(DateTime.UtcNow, false); } - [TestMethod, ExpectedException(typeof(ExpiredMessageException))] + [TestCase, ExpectedException(typeof(ExpiredMessageException))] public void VerifyBadTimestampIsRejected() { this.Channel = CreateChannel(MessageProtections.Expiration); this.ParameterizedReceiveProtectedTest(DateTime.UtcNow - StandardExpirationBindingElement.MaximumMessageAge - TimeSpan.FromSeconds(1), false); |