diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-01-19 09:08:13 -0800 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2009-01-19 09:08:13 -0800 |
commit | a83c4eb320f7c664841b2fb2d222c462670076f1 (patch) | |
tree | 7f6b530a7c5281ca0567f9d71c858a3b7b17e12e /src/DotNetOpenAuth.Test/OpenId/ChannelElements/KeyValueFormEncodingTests.cs | |
parent | 69e15859f9211e1461c204f29c29a4b906be04e8 (diff) | |
download | DotNetOpenAuth-a83c4eb320f7c664841b2fb2d222c462670076f1.zip DotNetOpenAuth-a83c4eb320f7c664841b2fb2d222c462670076f1.tar.gz DotNetOpenAuth-a83c4eb320f7c664841b2fb2d222c462670076f1.tar.bz2 |
Enabled the rest of the association tests.
Diffstat (limited to 'src/DotNetOpenAuth.Test/OpenId/ChannelElements/KeyValueFormEncodingTests.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/OpenId/ChannelElements/KeyValueFormEncodingTests.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/DotNetOpenAuth.Test/OpenId/ChannelElements/KeyValueFormEncodingTests.cs b/src/DotNetOpenAuth.Test/OpenId/ChannelElements/KeyValueFormEncodingTests.cs index 7b98ac2..92170c4 100644 --- a/src/DotNetOpenAuth.Test/OpenId/ChannelElements/KeyValueFormEncodingTests.cs +++ b/src/DotNetOpenAuth.Test/OpenId/ChannelElements/KeyValueFormEncodingTests.cs @@ -117,18 +117,18 @@ namespace DotNetOpenAuth.Test.OpenId.ChannelElements { this.KVDictTest(UTF8Encoding.UTF8.GetBytes("east:west\nnorth:south"), d10, TestMode.Decoder); } - [TestMethod, ExpectedException(typeof(ArgumentException))] + [TestMethod, ExpectedException(typeof(FormatException))] public void NoValue() { this.Illegal("x\n", KeyValueFormConformanceLevel.OpenId11); } - [TestMethod, ExpectedException(typeof(ArgumentException))] + [TestMethod, ExpectedException(typeof(FormatException))] public void NoValueLoose() { Dictionary<string, string> d = new Dictionary<string, string>(); this.KVDictTest(Encoding.UTF8.GetBytes("x\n"), d, TestMode.Decoder); } - [TestMethod, ExpectedException(typeof(ArgumentException))] + [TestMethod, ExpectedException(typeof(FormatException))] public void EmptyLine() { this.Illegal("x:b\n\n", KeyValueFormConformanceLevel.OpenId20); } @@ -140,7 +140,7 @@ namespace DotNetOpenAuth.Test.OpenId.ChannelElements { this.KVDictTest(Encoding.UTF8.GetBytes("x:b\n\n"), d, TestMode.Decoder); } - [TestMethod, ExpectedException(typeof(ArgumentException))] + [TestMethod, ExpectedException(typeof(FormatException))] public void LastLineNotTerminated() { this.Illegal("x:y\na:b", KeyValueFormConformanceLevel.OpenId11); } |