diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-05-23 18:27:49 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-05-23 18:27:49 -0700 |
commit | 97e3fc44a6911289baf3435febc0b003e56ad4e8 (patch) | |
tree | 851b5ce74ec7e93a5536c2e7af9bfe973e4546fd /src/DotNetOpenAuth.Test/AssemblyTesting.cs | |
parent | 0a5af17ff23523d176a77b0238cfd3e33b77aa73 (diff) | |
download | DotNetOpenAuth-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/AssemblyTesting.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/AssemblyTesting.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/DotNetOpenAuth.Test/AssemblyTesting.cs b/src/DotNetOpenAuth.Test/AssemblyTesting.cs index d0868d2..83e2242 100644 --- a/src/DotNetOpenAuth.Test/AssemblyTesting.cs +++ b/src/DotNetOpenAuth.Test/AssemblyTesting.cs @@ -14,10 +14,7 @@ namespace DotNetOpenAuth.Test { public static void AssemblyInitialize(TestContext tc) { // Make contract failures become test failures. Contract.ContractFailed += (sender, e) => { - if (e.FailureKind == ContractFailureKind.Precondition) { - // Currently we ignore these so that the regular ErrorUtilities can kick in. - e.SetHandled(); - } else { + if (e.FailureKind != ContractFailureKind.Precondition) { e.SetHandled(); Assert.Fail(e.FailureKind.ToString() + ": " + e.Message); } |