diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-09-30 07:42:12 -0700 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2008-10-02 07:33:57 -0700 |
commit | 08a2ca3fdbe337ba11575cf7893ab547536bb4e2 (patch) | |
tree | 450764d5a45091de0683d3f164a7efaa6164b22d /src/DotNetOAuth.Test/ChannelElements/OAuthChannelTests.cs | |
parent | 5cbd5d7edb994f874b265ed2e7c43f0bcd27b6ac (diff) | |
download | DotNetOpenAuth-08a2ca3fdbe337ba11575cf7893ab547536bb4e2.zip DotNetOpenAuth-08a2ca3fdbe337ba11575cf7893ab547536bb4e2.tar.gz DotNetOpenAuth-08a2ca3fdbe337ba11575cf7893ab547536bb4e2.tar.bz2 |
Split up the two OAuth message type providers into Consumer and Service Provider classes so they could actually work correctly..
Added Try methods to read messages that might not be there without throwing exceptions.
Diffstat (limited to 'src/DotNetOAuth.Test/ChannelElements/OAuthChannelTests.cs')
-rw-r--r-- | src/DotNetOAuth.Test/ChannelElements/OAuthChannelTests.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/DotNetOAuth.Test/ChannelElements/OAuthChannelTests.cs b/src/DotNetOAuth.Test/ChannelElements/OAuthChannelTests.cs index 790a0d4..a5eebf2 100644 --- a/src/DotNetOAuth.Test/ChannelElements/OAuthChannelTests.cs +++ b/src/DotNetOAuth.Test/ChannelElements/OAuthChannelTests.cs @@ -52,8 +52,13 @@ namespace DotNetOAuth.Test.ChannelElements { }
[TestMethod]
- public void CtorSimple() {
- new OAuthChannel(this.signingElement, this.nonceStore, new InMemoryTokenManager());
+ public void CtorSimpleConsumer() {
+ new OAuthChannel(this.signingElement, this.nonceStore, new InMemoryTokenManager(), true);
+ }
+
+ [TestMethod]
+ public void CtorSimpleServiceProvider() {
+ new OAuthChannel(this.signingElement, this.nonceStore, new InMemoryTokenManager(), false);
}
[TestMethod]
|