diff options
Diffstat (limited to 'src/DotNetOpenAuth.Test')
-rw-r--r-- | src/DotNetOpenAuth.Test/OpenId/Messages/CheckAuthenticationResponseTests.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Test/OpenId/Messages/CheckAuthenticationResponseTests.cs b/src/DotNetOpenAuth.Test/OpenId/Messages/CheckAuthenticationResponseTests.cs index cf97aa3..ce55ea4 100644 --- a/src/DotNetOpenAuth.Test/OpenId/Messages/CheckAuthenticationResponseTests.cs +++ b/src/DotNetOpenAuth.Test/OpenId/Messages/CheckAuthenticationResponseTests.cs @@ -9,6 +9,9 @@ namespace DotNetOpenAuth.Test.OpenId.Messages { using System.Collections.Generic; using System.Linq; using System.Text; + using DotNetOpenAuth.Messaging.Reflection; + using DotNetOpenAuth.OpenId; + using DotNetOpenAuth.OpenId.Messages; using Microsoft.VisualStudio.TestTools.UnitTesting; [TestClass] @@ -17,5 +20,16 @@ namespace DotNetOpenAuth.Test.OpenId.Messages { public override void SetUp() { base.SetUp(); } + + [TestMethod] + public void IsValid() { + Protocol protocol = Protocol.Default; + var request = new CheckAuthenticationRequest(protocol.Version, OPUri); + var response = new CheckAuthenticationResponse(protocol.Version, request); + var dictionary = new MessageDictionary(response); + Assert.AreEqual("false", dictionary["is_valid"]); + response.IsValid = true; + Assert.AreEqual("true", dictionary["is_valid"]); + } } } |