diff options
Diffstat (limited to 'src/DotNetOpenAuth.Test/AssemblyTesting.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/AssemblyTesting.cs | 1 |
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); |