summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/OAuth/ChannelElements
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-05-23 18:27:49 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-05-23 18:27:49 -0700
commit97e3fc44a6911289baf3435febc0b003e56ad4e8 (patch)
tree851b5ce74ec7e93a5536c2e7af9bfe973e4546fd /src/DotNetOpenAuth.Test/OAuth/ChannelElements
parent0a5af17ff23523d176a77b0238cfd3e33b77aa73 (diff)
downloadDotNetOpenAuth-97e3fc44a6911289baf3435febc0b003e56ad4e8.zip
DotNetOpenAuth-97e3fc44a6911289baf3435febc0b003e56ad4e8.tar.gz
DotNetOpenAuth-97e3fc44a6911289baf3435febc0b003e56ad4e8.tar.bz2
Switched almost entirely over to Code Contracts across the entire library.
But some unit tests still fail, and there are other issues.
Diffstat (limited to 'src/DotNetOpenAuth.Test/OAuth/ChannelElements')
-rw-r--r--src/DotNetOpenAuth.Test/OAuth/ChannelElements/OAuthChannelTests.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth.Test/OAuth/ChannelElements/OAuthChannelTests.cs b/src/DotNetOpenAuth.Test/OAuth/ChannelElements/OAuthChannelTests.cs
index 449a033..923e6c1 100644
--- a/src/DotNetOpenAuth.Test/OAuth/ChannelElements/OAuthChannelTests.cs
+++ b/src/DotNetOpenAuth.Test/OAuth/ChannelElements/OAuthChannelTests.cs
@@ -8,6 +8,7 @@ namespace DotNetOpenAuth.Test.ChannelElements {
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
+ using System.Diagnostics.Contracts;
using System.IO;
using System.Net;
using System.Text;
@@ -243,7 +244,7 @@ namespace DotNetOpenAuth.Test.ChannelElements {
}
private static string CreateAuthorizationHeader(IDictionary<string, string> fields) {
- ErrorUtilities.VerifyArgumentNotNull(fields, "fields");
+ Contract.Requires<ArgumentNullException>(fields != null);
StringBuilder authorization = new StringBuilder();
authorization.Append("OAuth ");