diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-03-09 20:38:48 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-03-09 20:38:48 -0700 |
commit | 09b5c9da30f9033f52bd542ed4df41b9c8a42a14 (patch) | |
tree | e88a75b7fb7dba7148954a009f85504642b5e497 /src/DotNetOpenAuth.Test/AssemblyTesting.cs | |
parent | c1abb4fa54a79345efac505ad1281f4595d6ab8a (diff) | |
download | DotNetOpenAuth-09b5c9da30f9033f52bd542ed4df41b9c8a42a14.zip DotNetOpenAuth-09b5c9da30f9033f52bd542ed4df41b9c8a42a14.tar.gz DotNetOpenAuth-09b5c9da30f9033f52bd542ed4df41b9c8a42a14.tar.bz2 |
Fixed some FxCop and StyleCop issues.
Diffstat (limited to 'src/DotNetOpenAuth.Test/AssemblyTesting.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/AssemblyTesting.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.Test/AssemblyTesting.cs b/src/DotNetOpenAuth.Test/AssemblyTesting.cs index fecd97b..bfce6c6 100644 --- a/src/DotNetOpenAuth.Test/AssemblyTesting.cs +++ b/src/DotNetOpenAuth.Test/AssemblyTesting.cs @@ -14,8 +14,13 @@ namespace DotNetOpenAuth.Test { public static void AssemblyInitialize(TestContext tc) { // Make contract failures become test failures. Contract.ContractFailed += (sender, e) => { - e.Handled = true; - Assert.Fail(e.FailureKind.ToString() + ": " + e.DebugMessage); + if (e.FailureKind == ContractFailureKind.Precondition) { + // Currently we ignore these so that the regular ErrorUtilities can kick in. + e.Handled = true; + } else { + e.Handled = true; + Assert.Fail(e.FailureKind.ToString() + ": " + e.DebugMessage); + } }; } } |