summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/AssemblyTesting.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-12-26 20:20:46 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2012-12-26 20:20:46 -0800
commit3475fab579db0f6a1454ebc83d2e8a9c271e4c18 (patch)
treebc1cc264acba9edc486eefbbfbb5fd4822111fb1 /src/DotNetOpenAuth.Test/AssemblyTesting.cs
parent002ce0e39af3b684ce6060dce60805e3333420fa (diff)
downloadDotNetOpenAuth-3475fab579db0f6a1454ebc83d2e8a9c271e4c18.zip
DotNetOpenAuth-3475fab579db0f6a1454ebc83d2e8a9c271e4c18.tar.gz
DotNetOpenAuth-3475fab579db0f6a1454ebc83d2e8a9c271e4c18.tar.bz2
Removes more remnants of Code Contracts.
Diffstat (limited to 'src/DotNetOpenAuth.Test/AssemblyTesting.cs')
-rw-r--r--src/DotNetOpenAuth.Test/AssemblyTesting.cs26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/DotNetOpenAuth.Test/AssemblyTesting.cs b/src/DotNetOpenAuth.Test/AssemblyTesting.cs
deleted file mode 100644
index dac5bea..0000000
--- a/src/DotNetOpenAuth.Test/AssemblyTesting.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//-----------------------------------------------------------------------
-// <copyright file="AssemblyTesting.cs" company="Outercurve Foundation">
-// Copyright (c) Outercurve Foundation. All rights reserved.
-// </copyright>
-//-----------------------------------------------------------------------
-
-namespace DotNetOpenAuth.Test {
- using System.Diagnostics.Contracts;
- using NUnit.Framework;
-
- [SetUpFixture]
- public class AssemblyTesting {
- [SetUp]
- public static void AssemblyInitialize() {
- // 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);
- }
- };
- }
- }
-}