diff options
Diffstat (limited to 'src/DotNetOAuth.Test/ProtocolTests.cs')
-rw-r--r-- | src/DotNetOAuth.Test/ProtocolTests.cs | 37 |
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);
+ }
+ }
+}
|