summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/AssemblyTesting.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-03-08 21:39:04 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-03-09 15:48:44 -0700
commit291e90854ac69ee6ab97938c978c7d25ee0870e1 (patch)
tree9202f632c21cdddbbf06781d9489967a7473aa7d /src/DotNetOpenAuth.Test/AssemblyTesting.cs
parent800ad97dbf057985984905eff66d707772ab3ff1 (diff)
downloadDotNetOpenAuth-291e90854ac69ee6ab97938c978c7d25ee0870e1.zip
DotNetOpenAuth-291e90854ac69ee6ab97938c978c7d25ee0870e1.tar.gz
DotNetOpenAuth-291e90854ac69ee6ab97938c978c7d25ee0870e1.tar.bz2
More Code Contract work.
Diffstat (limited to 'src/DotNetOpenAuth.Test/AssemblyTesting.cs')
-rw-r--r--src/DotNetOpenAuth.Test/AssemblyTesting.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Test/AssemblyTesting.cs b/src/DotNetOpenAuth.Test/AssemblyTesting.cs
index d3ecb8d..fecd97b 100644
--- a/src/DotNetOpenAuth.Test/AssemblyTesting.cs
+++ b/src/DotNetOpenAuth.Test/AssemblyTesting.cs
@@ -12,6 +12,7 @@ namespace DotNetOpenAuth.Test {
public class AssemblyTesting {
[AssemblyInitialize]
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);