summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/OpenId/Messages/AssociateDiffieHellmanRequestTests.cs
blob: a8648ac895d15f93170c0b019efbae87981e3e0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//-----------------------------------------------------------------------
// <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;
	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(Protocol.V20.Version, Recipient);
		}

		[TestMethod]
		public void Ctor() {
			Assert.AreEqual(Recipient, this.request.Recipient);
		}

		[TestMethod]
		public void Mode() {
			Assert.AreEqual("associate", this.request.Mode);
		}
	}
}