summaryrefslogtreecommitdiffstats
path: root/src/DotNetOAuth.Test/ProtocolTests.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2008-09-10 14:41:29 -0700
committerAndrew <andrewarnott@gmail.com>2008-09-10 14:41:29 -0700
commit9a4d199c6397d2ce3d42e819f433c319a1f3ad20 (patch)
treed4e10af93c70f3f4f34a1aa114c48e48ffa4cdee /src/DotNetOAuth.Test/ProtocolTests.cs
parent08c9922ce58fc07ce3764b6229b10225c7f9bd89 (diff)
downloadDotNetOpenAuth-9a4d199c6397d2ce3d42e819f433c319a1f3ad20.zip
DotNetOpenAuth-9a4d199c6397d2ce3d42e819f433c319a1f3ad20.tar.gz
DotNetOpenAuth-9a4d199c6397d2ce3d42e819f433c319a1f3ad20.tar.bz2
Great code coverage everywhere we care except for OAuthProtocol and OAuthMessageTypeProvider.
Diffstat (limited to 'src/DotNetOAuth.Test/ProtocolTests.cs')
-rw-r--r--src/DotNetOAuth.Test/ProtocolTests.cs37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/DotNetOAuth.Test/ProtocolTests.cs b/src/DotNetOAuth.Test/ProtocolTests.cs
new file mode 100644
index 0000000..0a782d1
--- /dev/null
+++ b/src/DotNetOAuth.Test/ProtocolTests.cs
@@ -0,0 +1,37 @@
+//-----------------------------------------------------------------------
+// <copyright file="ProtocolTests.cs" company="Andrew Arnott">
+// Copyright (c) Andrew Arnott. All rights reserved.
+// </copyright>
+//-----------------------------------------------------------------------
+
+namespace DotNetOAuth.Test {
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Text;
+ using Microsoft.VisualStudio.TestTools.UnitTesting;
+
+ [TestClass]
+ public class ProtocolTests {
+ [TestMethod]
+ public void Default() {
+ Assert.AreSame(Protocol.V10, Protocol.Default);
+ }
+
+ [TestMethod]
+ public void DataContractNamespace() {
+ Assert.AreEqual("http://oauth.net/core/1.0/", Protocol.V10.DataContractNamespace);
+ Assert.AreEqual("http://oauth.net/core/1.0/", Protocol.DataContractNamespaceV10);
+ }
+
+ [TestMethod]
+ public void AuthorizationHeaderScheme() {
+ Assert.AreEqual("OAuth", Protocol.V10.AuthorizationHeaderScheme);
+ }
+
+ [TestMethod]
+ public void ParameterPrefix() {
+ Assert.AreEqual("oauth_", Protocol.V10.ParameterPrefix);
+ }
+ }
+}