summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/OpenId/Messages/AssociateDiffieHellmanRequestTests.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2008-11-07 21:57:01 -0800
committerAndrew <andrewarnott@gmail.com>2008-11-07 21:57:01 -0800
commitf2d618e5cf4010d4a3bf6ea357c72c88bfdf693c (patch)
tree186248daa4cfa3641cc9dbf64310a81ac5a2adb0 /src/DotNetOpenAuth.Test/OpenId/Messages/AssociateDiffieHellmanRequestTests.cs
parent4f5bcdfe5ef25816225a7bd73ab69c2c02bea1cf (diff)
downloadDotNetOpenAuth-f2d618e5cf4010d4a3bf6ea357c72c88bfdf693c.zip
DotNetOpenAuth-f2d618e5cf4010d4a3bf6ea357c72c88bfdf693c.tar.gz
DotNetOpenAuth-f2d618e5cf4010d4a3bf6ea357c72c88bfdf693c.tar.bz2
Added OpenIdChannel and Key-Value Form encoding.
Also several primitive tests for the association messages.
Diffstat (limited to 'src/DotNetOpenAuth.Test/OpenId/Messages/AssociateDiffieHellmanRequestTests.cs')
-rw-r--r--src/DotNetOpenAuth.Test/OpenId/Messages/AssociateDiffieHellmanRequestTests.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Test/OpenId/Messages/AssociateDiffieHellmanRequestTests.cs b/src/DotNetOpenAuth.Test/OpenId/Messages/AssociateDiffieHellmanRequestTests.cs
new file mode 100644
index 0000000..81014f2
--- /dev/null
+++ b/src/DotNetOpenAuth.Test/OpenId/Messages/AssociateDiffieHellmanRequestTests.cs
@@ -0,0 +1,32 @@
+//-----------------------------------------------------------------------
+// <copyright file="AssociateDiffieHellmanRequestTests.cs" company="Andrew Arnott">
+// Copyright (c) Andrew Arnott. All rights reserved.
+// </copyright>
+//-----------------------------------------------------------------------
+
+namespace DotNetOpenAuth.Test.OpenId.Messages {
+ using System;
+ using DotNetOpenAuth.OpenId.Messages;
+ using Microsoft.VisualStudio.TestTools.UnitTesting;
+
+ [TestClass]
+ public class AssociateDiffieHellmanRequestTests {
+ private static readonly Uri Recipient = new Uri("http://host");
+ private AssociateDiffieHellmanRequest request;
+
+ [TestInitialize]
+ public void Setup() {
+ this.request = new AssociateDiffieHellmanRequest(Recipient);
+ }
+
+ [TestMethod]
+ public void Ctor() {
+ Assert.AreEqual(Recipient, this.request.Recipient);
+ }
+
+ [TestMethod]
+ public void Mode() {
+ Assert.AreEqual("associate", this.request.Mode);
+ }
+ }
+}