summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/OAuthWrap
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-02-22 16:29:01 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2010-02-22 16:29:01 -0800
commita02284b55e149e7399e3e027cab703b945ed3c98 (patch)
treea5907ffb109076b48068048d7292a53e8055ca7f /src/DotNetOpenAuth.Test/OAuthWrap
parent1b3fac76d3f63830d2a5fbe07b90fbcfb2bb8b8b (diff)
downloadDotNetOpenAuth-a02284b55e149e7399e3e027cab703b945ed3c98.zip
DotNetOpenAuth-a02284b55e149e7399e3e027cab703b945ed3c98.tar.gz
DotNetOpenAuth-a02284b55e149e7399e3e027cab703b945ed3c98.tar.bz2
Swapped out the custom OAuth WRAP factory for the new StandardMessageFactory class.
Added first WRAP unit test, which although it's empty it actually verifies that the channel can be initialized.
Diffstat (limited to 'src/DotNetOpenAuth.Test/OAuthWrap')
-rw-r--r--src/DotNetOpenAuth.Test/OAuthWrap/OAuthWrapChannelTests.cs34
-rw-r--r--src/DotNetOpenAuth.Test/OAuthWrap/OAuthWrapTestBase.cs15
2 files changed, 49 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Test/OAuthWrap/OAuthWrapChannelTests.cs b/src/DotNetOpenAuth.Test/OAuthWrap/OAuthWrapChannelTests.cs
new file mode 100644
index 0000000..1f76e8f
--- /dev/null
+++ b/src/DotNetOpenAuth.Test/OAuthWrap/OAuthWrapChannelTests.cs
@@ -0,0 +1,34 @@
+//-----------------------------------------------------------------------
+// <copyright file="OAuthWrapChannelTests.cs" company="Andrew Arnott">
+// Copyright (c) Andrew Arnott. All rights reserved.
+// </copyright>
+//-----------------------------------------------------------------------
+
+namespace DotNetOpenAuth.Test.OAuthWrap {
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Text;
+ using DotNetOpenAuth.Messaging;
+ using DotNetOpenAuth.OAuthWrap.ChannelElements;
+ using NUnit.Framework;
+
+ [TestFixture]
+ public class OAuthWrapChannelTests : OAuthWrapTestBase {
+ private OAuthWrapChannel channel;
+
+ public override void SetUp() {
+ base.SetUp();
+
+ this.channel = new OAuthWrapChannel();
+ }
+
+ /// <summary>
+ /// Verifies that the WRAP message types are initialized.
+ /// </summary>
+ [TestCase]
+ public void MessageFactory() {
+ // TODO: code here
+ }
+ }
+}
diff --git a/src/DotNetOpenAuth.Test/OAuthWrap/OAuthWrapTestBase.cs b/src/DotNetOpenAuth.Test/OAuthWrap/OAuthWrapTestBase.cs
new file mode 100644
index 0000000..08c9da6
--- /dev/null
+++ b/src/DotNetOpenAuth.Test/OAuthWrap/OAuthWrapTestBase.cs
@@ -0,0 +1,15 @@
+//-----------------------------------------------------------------------
+// <copyright file="OAuthWrapTestBase.cs" company="Andrew Arnott">
+// Copyright (c) Andrew Arnott. All rights reserved.
+// </copyright>
+//-----------------------------------------------------------------------
+
+namespace DotNetOpenAuth.Test.OAuthWrap {
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Text;
+
+ public class OAuthWrapTestBase : TestBase {
+ }
+}