summaryrefslogtreecommitdiffstats
path: root/src/DotNetOAuth.Test/Messaging/DictionaryXmlReaderTests.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOAuth.Test/Messaging/DictionaryXmlReaderTests.cs')
-rw-r--r--src/DotNetOAuth.Test/Messaging/DictionaryXmlReaderTests.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/DotNetOAuth.Test/Messaging/DictionaryXmlReaderTests.cs b/src/DotNetOAuth.Test/Messaging/DictionaryXmlReaderTests.cs
index 3dc3238..54c47f0 100644
--- a/src/DotNetOAuth.Test/Messaging/DictionaryXmlReaderTests.cs
+++ b/src/DotNetOAuth.Test/Messaging/DictionaryXmlReaderTests.cs
@@ -15,12 +15,19 @@ namespace DotNetOAuth.Test.Messaging {
public class DictionaryXmlReaderTests : TestBase {
[TestMethod, ExpectedException(typeof(ArgumentNullException))]
public void CreateWithNullRootElement() {
- DictionaryXmlReader.Create(null, new Dictionary<string, string>());
+ IComparer<string> fieldSorter = new DataContractMemberComparer(typeof(Mocks.TestMessage));
+ DictionaryXmlReader.Create(null, fieldSorter, new Dictionary<string, string>());
+ }
+
+ [TestMethod, ExpectedException(typeof(ArgumentNullException))]
+ public void CreateWithNullDataContractType() {
+ DictionaryXmlReader.Create(XName.Get("name", "ns"), null, new Dictionary<string, string>());
}
[TestMethod, ExpectedException(typeof(ArgumentNullException))]
public void CreateWithNullFields() {
- DictionaryXmlReader.Create(XName.Get("name", "ns"), null);
+ IComparer<string> fieldSorter = new DataContractMemberComparer(typeof(Mocks.TestMessage));
+ DictionaryXmlReader.Create(XName.Get("name", "ns"), fieldSorter, null);
}
}
}