summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/AssemblyTesting.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-01-18 20:10:18 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2010-01-18 20:10:18 -0800
commit47ba4e9c49be9479b7c3d30613cab982ecda042d (patch)
tree07a2a747a70e13d80aedd41294a0a3e94f60b192 /src/DotNetOpenAuth.Test/AssemblyTesting.cs
parent1f79fcb88004d86372b7392f51b914af826f1b9d (diff)
parentcdb850c6cf90381e6db75365272b7d65ef5fe359 (diff)
downloadDotNetOpenAuth-47ba4e9c49be9479b7c3d30613cab982ecda042d.zip
DotNetOpenAuth-47ba4e9c49be9479b7c3d30613cab982ecda042d.tar.gz
DotNetOpenAuth-47ba4e9c49be9479b7c3d30613cab982ecda042d.tar.bz2
Merge branch 'master' into simpleauth
Conflicts: src/DotNetOpenAuth.vsmdi src/DotNetOpenAuth/DotNetOpenAuth.csproj
Diffstat (limited to 'src/DotNetOpenAuth.Test/AssemblyTesting.cs')
-rw-r--r--src/DotNetOpenAuth.Test/AssemblyTesting.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/DotNetOpenAuth.Test/AssemblyTesting.cs b/src/DotNetOpenAuth.Test/AssemblyTesting.cs
index d0868d2..7659a82 100644
--- a/src/DotNetOpenAuth.Test/AssemblyTesting.cs
+++ b/src/DotNetOpenAuth.Test/AssemblyTesting.cs
@@ -14,10 +14,9 @@ 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 {
+ // 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);
}