diff options
Diffstat (limited to 'src/DotNetOpenAuth.Test/OAuth/ProtocolTests.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/OAuth/ProtocolTests.cs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Test/OAuth/ProtocolTests.cs b/src/DotNetOpenAuth.Test/OAuth/ProtocolTests.cs new file mode 100644 index 0000000..6a2551a --- /dev/null +++ b/src/DotNetOpenAuth.Test/OAuth/ProtocolTests.cs @@ -0,0 +1,34 @@ +//----------------------------------------------------------------------- +// <copyright file="ProtocolTests.cs" company="Andrew Arnott"> +// Copyright (c) Andrew Arnott. All rights reserved. +// </copyright> +//----------------------------------------------------------------------- + +namespace DotNetOpenAuth.Test { + using DotNetOpenAuth.OAuth; + 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); + } + } +} |