diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2012-12-26 20:20:46 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2012-12-26 20:20:46 -0800 |
commit | 3475fab579db0f6a1454ebc83d2e8a9c271e4c18 (patch) | |
tree | bc1cc264acba9edc486eefbbfbb5fd4822111fb1 /samples/OpenIdOfflineProvider/TextBoxTextWriter.cs | |
parent | 002ce0e39af3b684ce6060dce60805e3333420fa (diff) | |
download | DotNetOpenAuth-3475fab579db0f6a1454ebc83d2e8a9c271e4c18.zip DotNetOpenAuth-3475fab579db0f6a1454ebc83d2e8a9c271e4c18.tar.gz DotNetOpenAuth-3475fab579db0f6a1454ebc83d2e8a9c271e4c18.tar.bz2 |
Removes more remnants of Code Contracts.
Diffstat (limited to 'samples/OpenIdOfflineProvider/TextBoxTextWriter.cs')
-rw-r--r-- | samples/OpenIdOfflineProvider/TextBoxTextWriter.cs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/samples/OpenIdOfflineProvider/TextBoxTextWriter.cs b/samples/OpenIdOfflineProvider/TextBoxTextWriter.cs index b7a3549..b0dabbc 100644 --- a/samples/OpenIdOfflineProvider/TextBoxTextWriter.cs +++ b/samples/OpenIdOfflineProvider/TextBoxTextWriter.cs @@ -6,10 +6,10 @@ namespace DotNetOpenAuth.OpenIdOfflineProvider { using System; - using System.Diagnostics.Contracts; using System.IO; using System.Text; using System.Windows.Controls; + using Validation; /// <summary> /// A text writer that appends all write calls to a text box. @@ -20,7 +20,7 @@ namespace DotNetOpenAuth.OpenIdOfflineProvider { /// </summary> /// <param name="box">The text box to append log messages to.</param> internal TextBoxTextWriter(TextBox box) { - Contract.Requires(box != null); + Requires.NotNull(box, "box"); this.Box = box; } @@ -68,14 +68,6 @@ namespace DotNetOpenAuth.OpenIdOfflineProvider { } /// <summary> - /// Verifies conditions that should be true for any valid state of this object. - /// </summary> - [ContractInvariantMethod] - private void ObjectInvariant() { - Contract.Invariant(this.Box != null); - } - - /// <summary> /// Appends text to the text box. /// </summary> /// <param name="value">The string to append.</param> |