diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-05-14 07:03:22 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-05-14 07:03:22 -0700 |
commit | 4013c20c2f2dbcd4ba93179c075b7edd1cc1f75e (patch) | |
tree | 0388554afb15e0c4d2318f3c4d6fe3a3affee44d /src | |
parent | 0b8f9cc1a6439edb623069f9efa4851aecc701bb (diff) | |
download | DotNetOpenAuth-4013c20c2f2dbcd4ba93179c075b7edd1cc1f75e.zip DotNetOpenAuth-4013c20c2f2dbcd4ba93179c075b7edd1cc1f75e.tar.gz DotNetOpenAuth-4013c20c2f2dbcd4ba93179c075b7edd1cc1f75e.tar.bz2 |
Fixed build breaks in test project.
Diffstat (limited to 'src')
-rw-r--r-- | src/DotNetOpenAuth.Test/OAuthWrap/MessageFactoryTests.cs | 40 |
1 files changed, 2 insertions, 38 deletions
diff --git a/src/DotNetOpenAuth.Test/OAuthWrap/MessageFactoryTests.cs b/src/DotNetOpenAuth.Test/OAuthWrap/MessageFactoryTests.cs index 0733600..414afba 100644 --- a/src/DotNetOpenAuth.Test/OAuthWrap/MessageFactoryTests.cs +++ b/src/DotNetOpenAuth.Test/OAuthWrap/MessageFactoryTests.cs @@ -251,37 +251,13 @@ namespace DotNetOpenAuth.Test.OAuthWrap { #region Client Account and Password profile messages [TestCase] - public void ClientAccountUsernamePasswordRequest() { + public void ClientCredentialsRequest() { var fields = new Dictionary<string, string> { { Protocol.wrap_name, "abc" }, { Protocol.wrap_password, "abc" }, }; IDirectedProtocolMessage request = this.messageFactory.GetNewRequestMessage(this.recipient, fields); - Assert.IsInstanceOf(typeof(ClientAccountUsernamePasswordRequest), request); - } - - [TestCase] - public void ClientAccountUsernamePasswordSuccessResponse() { - var fields = new Dictionary<string, string> { - { Protocol.refresh_token, "abc" }, - { Protocol.access_token, "abc" }, - }; - var request = new ClientAccountUsernamePasswordRequest(this.recipient.Location, Protocol.Default.Version); - Assert.IsInstanceOf( - typeof(ClientAccountUsernamePasswordSuccessResponse), - this.messageFactory.GetNewResponseMessage(request, fields)); - } - - [TestCase] - public void ClientAccountUsernamePasswordFailedResponse() { - // HTTP 401 Unauthorized - // WWW-Authenticate: WRAP - var fields = new Dictionary<string, string> { - }; - var request = new ClientAccountUsernamePasswordRequest(this.recipient.Location, Protocol.Default.Version); - Assert.IsInstanceOf( - typeof(ClientAccountUsernamePasswordFailedResponse), - this.messageFactory.GetNewResponseMessage(request, fields)); + Assert.IsInstanceOf(typeof(ClientCredentialsRequest), request); } #endregion @@ -309,18 +285,6 @@ namespace DotNetOpenAuth.Test.OAuthWrap { this.messageFactory.GetNewResponseMessage(request, fields)); } - [TestCase] - public void AssertionFailedResponse() { - // HTTP 401 Unauthorized - // WWW-Authenticate: WRAP - var fields = new Dictionary<string, string> { - }; - var request = new AssertionRequest(this.recipient.Location, Protocol.Default.Version); - Assert.IsInstanceOf( - typeof(AssertionFailedResponse), - this.messageFactory.GetNewResponseMessage(request, fields)); - } - #endregion } } |