diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-09-22 23:28:14 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-09-22 23:28:14 -0700 |
commit | fc84b75eea14b8d1ba48bf17c0c024381d01bbaf (patch) | |
tree | 544af0b5a75a423342f8115ba7cfb76166e0c18f /src/DotNetOpenAuth.Test/Mocks/MockRealm.cs | |
parent | 3a27e20e3fc3f61fe25f9c3367b74dcbbfb82f48 (diff) | |
download | DotNetOpenAuth-fc84b75eea14b8d1ba48bf17c0c024381d01bbaf.zip DotNetOpenAuth-fc84b75eea14b8d1ba48bf17c0c024381d01bbaf.tar.gz DotNetOpenAuth-fc84b75eea14b8d1ba48bf17c0c024381d01bbaf.tar.bz2 |
Finishing up contract work.
Diffstat (limited to 'src/DotNetOpenAuth.Test/Mocks/MockRealm.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/Mocks/MockRealm.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth.Test/Mocks/MockRealm.cs b/src/DotNetOpenAuth.Test/Mocks/MockRealm.cs index 4e29bba..f89f119 100644 --- a/src/DotNetOpenAuth.Test/Mocks/MockRealm.cs +++ b/src/DotNetOpenAuth.Test/Mocks/MockRealm.cs @@ -5,7 +5,9 @@ //----------------------------------------------------------------------- namespace DotNetOpenAuth.Test.Mocks { + using System; using System.Collections.Generic; + using System.Diagnostics.Contracts; using DotNetOpenAuth.Messaging; using DotNetOpenAuth.OpenId; @@ -19,7 +21,7 @@ namespace DotNetOpenAuth.Test.Mocks { /// <param name="relyingPartyDescriptions">The relying party descriptions.</param> internal MockRealm(Realm wrappedRealm, params RelyingPartyEndpointDescription[] relyingPartyDescriptions) : base(wrappedRealm) { - ErrorUtilities.VerifyArgumentNotNull(relyingPartyDescriptions, "relyingPartyDescriptions"); + Contract.Requires<ArgumentNullException>(relyingPartyDescriptions != null); this.relyingPartyDescriptions = relyingPartyDescriptions; } |