summaryrefslogtreecommitdiffstats
path: root/src/DotNetOAuth.Test/Messaging/ChannelTests.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOAuth.Test/Messaging/ChannelTests.cs')
-rw-r--r--src/DotNetOAuth.Test/Messaging/ChannelTests.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DotNetOAuth.Test/Messaging/ChannelTests.cs b/src/DotNetOAuth.Test/Messaging/ChannelTests.cs
index 4627b87..ca80dba 100644
--- a/src/DotNetOAuth.Test/Messaging/ChannelTests.cs
+++ b/src/DotNetOAuth.Test/Messaging/ChannelTests.cs
@@ -271,7 +271,7 @@ namespace DotNetOAuth.Test.Messaging {
this.ParameterizedReceiveTest("GET");
}
- [TestMethod, ExpectedException(typeof(ProtocolException))]
+ [TestMethod, ExpectedException(typeof(InvalidSignatureException))]
public void ReceivedInvalidSignature() {
this.channel = new TestSigningChannel(false, false);
this.ParameterizedReceiveProtectedTest(DateTime.UtcNow, true);
@@ -284,7 +284,7 @@ namespace DotNetOAuth.Test.Messaging {
this.ParameterizedReceiveProtectedTest(DateTime.UtcNow, false);
}
- [TestMethod, ExpectedException(typeof(ProtocolException))]
+ [TestMethod, ExpectedException(typeof(ExpiredMessageException))]
public void VerifyBadTimestampIsRejected() {
// Create a channel that supports and recognizes signed messages.
this.channel = new TestSigningChannel(true, false);
@@ -297,7 +297,7 @@ namespace DotNetOAuth.Test.Messaging {
this.ParameterizedReceiveProtectedTest(DateTime.UtcNow, false);
}
- [TestMethod, ExpectedException(typeof(ProtocolException))]
+ [TestMethod, ExpectedException(typeof(ReplayedMessageException))]
public void ReceivedReplayProtectedMessageTwice() {
this.channel = new TestReplayProtectedChannel();
this.ParameterizedReceiveProtectedTest(DateTime.UtcNow, false);