summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenId.Test/Extensions/AttributeExchangeTests.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOpenId.Test/Extensions/AttributeExchangeTests.cs')
-rw-r--r--src/DotNetOpenId.Test/Extensions/AttributeExchangeTests.cs38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/DotNetOpenId.Test/Extensions/AttributeExchangeTests.cs b/src/DotNetOpenId.Test/Extensions/AttributeExchangeTests.cs
new file mode 100644
index 0000000..c216fd1
--- /dev/null
+++ b/src/DotNetOpenId.Test/Extensions/AttributeExchangeTests.cs
@@ -0,0 +1,38 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using NUnit.Framework;
+using DotNetOpenId.RelyingParty;
+using DotNetOpenId.Extensions;
+
+namespace DotNetOpenId.Test.Extensions {
+ [TestFixture]
+ public class AttributeExchangeTests : ExtensionTestBase {
+ [Test]
+ public void None() {
+ var fetchResponse = ParameterizedTest<AttributeExchangeFetchResponse>(
+ TestSupport.GetIdentityUrl(TestSupport.Scenarios.ExtensionFullCooperation, Version), null);
+ Assert.IsNull(fetchResponse);
+ var storeResponse = ParameterizedTest<AttributeExchangeStoreResponse>(
+ TestSupport.GetIdentityUrl(TestSupport.Scenarios.ExtensionFullCooperation, Version), null);
+ Assert.IsNull(storeResponse);
+ }
+
+ [Test]
+ public void Fetch() {
+ var request = new AttributeExchangeFetchRequest();
+ var response = ParameterizedTest<AttributeExchangeFetchResponse>(
+ TestSupport.GetIdentityUrl(TestSupport.Scenarios.ExtensionFullCooperation, Version), request);
+ Assert.IsNotNull(response);
+ }
+
+ [Test]
+ public void Store() {
+ var request = new AttributeExchangeStoreRequest();
+ var response = ParameterizedTest<AttributeExchangeStoreResponse>(
+ TestSupport.GetIdentityUrl(TestSupport.Scenarios.ExtensionFullCooperation, Version), request);
+ Assert.IsNotNull(response);
+ }
+ }
+}