diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-09-03 08:18:46 -0700 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2008-09-03 08:18:46 -0700 |
commit | e8a2ce8cbe1c544514019a32c8fcf3ecfc6f71f3 (patch) | |
tree | 5b7aa94bb52723936405042788236bfe2dba0e87 /src/DotNetOAuth.Test/Messaging/DictionaryXmlReaderTests.cs | |
parent | 2ca76eb03e338554782d66d4c167c8e3cc592d9e (diff) | |
download | DotNetOpenAuth-e8a2ce8cbe1c544514019a32c8fcf3ecfc6f71f3.zip DotNetOpenAuth-e8a2ce8cbe1c544514019a32c8fcf3ecfc6f71f3.tar.gz DotNetOpenAuth-e8a2ce8cbe1c544514019a32c8fcf3ecfc6f71f3.tar.bz2 |
Added more tests.
Diffstat (limited to 'src/DotNetOAuth.Test/Messaging/DictionaryXmlReaderTests.cs')
-rw-r--r-- | src/DotNetOAuth.Test/Messaging/DictionaryXmlReaderTests.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/DotNetOAuth.Test/Messaging/DictionaryXmlReaderTests.cs b/src/DotNetOAuth.Test/Messaging/DictionaryXmlReaderTests.cs new file mode 100644 index 0000000..3dc3238 --- /dev/null +++ b/src/DotNetOAuth.Test/Messaging/DictionaryXmlReaderTests.cs @@ -0,0 +1,26 @@ +//-----------------------------------------------------------------------
+// <copyright file="DictionaryXmlReaderTests.cs" company="Andrew Arnott">
+// Copyright (c) Andrew Arnott. All rights reserved.
+// </copyright>
+//-----------------------------------------------------------------------
+
+namespace DotNetOAuth.Test.Messaging {
+ using System;
+ using System.Collections.Generic;
+ using System.Xml.Linq;
+ using DotNetOAuth.Messaging;
+ using Microsoft.VisualStudio.TestTools.UnitTesting;
+
+ [TestClass]
+ public class DictionaryXmlReaderTests : TestBase {
+ [TestMethod, ExpectedException(typeof(ArgumentNullException))]
+ public void CreateWithNullRootElement() {
+ DictionaryXmlReader.Create(null, new Dictionary<string, string>());
+ }
+
+ [TestMethod, ExpectedException(typeof(ArgumentNullException))]
+ public void CreateWithNullFields() {
+ DictionaryXmlReader.Create(XName.Get("name", "ns"), null);
+ }
+ }
+}
|