diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-09-20 15:38:18 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-09-20 15:38:18 -0700 |
commit | ebead5f58f33a26294b48527ee12bd3af8a689a0 (patch) | |
tree | b5ac44261198d9dd03b9c83b84ffe1bd18c17c67 /src/DotNetOpenAuth.Test/AssemblyTesting.cs | |
parent | 350668f0b6dd78ad584950eb0a2e041b230ceb98 (diff) | |
download | DotNetOpenAuth-ebead5f58f33a26294b48527ee12bd3af8a689a0.zip DotNetOpenAuth-ebead5f58f33a26294b48527ee12bd3af8a689a0.tar.gz DotNetOpenAuth-ebead5f58f33a26294b48527ee12bd3af8a689a0.tar.bz2 |
Adjusted Code Contract settings.
Diffstat (limited to 'src/DotNetOpenAuth.Test/AssemblyTesting.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/AssemblyTesting.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Test/AssemblyTesting.cs b/src/DotNetOpenAuth.Test/AssemblyTesting.cs index 83e2242..7659a82 100644 --- a/src/DotNetOpenAuth.Test/AssemblyTesting.cs +++ b/src/DotNetOpenAuth.Test/AssemblyTesting.cs @@ -14,6 +14,8 @@ namespace DotNetOpenAuth.Test { public static void AssemblyInitialize(TestContext tc) { // Make contract failures become test failures. Contract.ContractFailed += (sender, e) => { + // For now, we have tests that verify that preconditions throw exceptions. + // So we don't want to fail a test just because a precondition check failed. if (e.FailureKind != ContractFailureKind.Precondition) { e.SetHandled(); Assert.Fail(e.FailureKind.ToString() + ": " + e.Message); |