Permalink
Browse files

2010-07-23 Atsushi Enomoto <atsushi@ximian.com>

	* ContractAssertTest.cs
	  ContractAssumeTest.cs
	  ContractHelperTest.cs
	  ContractMustUseRewriterTest.cs:
	  Mark couple of runtime breaking tests (on .NET 4.0) as [Ignore].
  • Loading branch information...
1 parent 505edd4 commit 7aeb07d12fbe4c77f4e946b591f624ca71092b00 @atsushieno atsushieno committed Jul 23, 2010
@@ -1,3 +1,11 @@
+2010-07-23 Atsushi Enomoto <atsushi@ximian.com>
+
+ * ContractAssertTest.cs
+ ContractAssumeTest.cs
+ ContractHelperTest.cs
+ ContractMustUseRewriterTest.cs:
+ Mark couple of runtime breaking tests (on .NET 4.0) as [Ignore].
+
2010-06-23 Chris Bacon <chrisbacon76@gmail.com>
* Added all files
@@ -30,6 +30,7 @@ public void TestAssertTrue ()
/// Contract.Assert(false) will cause an assert to be triggered with the correct message.
/// </summary>
[Test]
+ [Ignore ("This causes NUnit crash on .NET 4.0")]
public void TestAssertNoEventHandler ()
{
try {
@@ -53,6 +54,7 @@ public void TestAssertNoEventHandler ()
/// Because nothing is done in the event handler, an assert should be triggered.
/// </summary>
[Test]
+ [Ignore ("This causes NUnit crash on .NET 4.0")]
public void TestAssertEventHandlerNoAction ()
{
bool visitedEventHandler = false;
@@ -21,6 +21,7 @@ public class ContractAssumeTest : TestContractBase {
/// or exception is slightly different.
/// </summary>
[Test]
+ [Ignore ("This causes NUnit crash on .NET 4.0")]
public void TestAssumeMessage ()
{
try {
@@ -240,6 +240,7 @@ public void TestRaiseContractMultipleHandlers3 ()
/// Contract.TriggerFailure() triggers the assert. Check that the assert is triggered, with the correct text.
/// </summary>
[Test]
+ [Ignore ("This causes NUnit crash on .NET 4.0")]
public void TestTriggerFailure ()
{
try {
@@ -48,6 +48,7 @@ private void CheckMustUseRewriter (string expectedMsg, params Action[] fnTests)
/// Contract.Requires() ALWAYS triggers an assert, regardless of any other factors.
/// </summary>
[Test]
+ [Ignore ("This causes NUnit crash on .NET 4.0")]
public void TestRequires ()
{
CheckMustUseRewriter ("Description: Must use the rewriter when using Contract.Requires",
@@ -62,6 +63,7 @@ public void TestRequires ()
/// Contract.Requires() ALWAYS triggers an assert, regardless of any other factors.
/// </summary>
[Test]
+ [Ignore ("This causes NUnit crash on .NET 4.0")]
public void TestRequiresTException ()
{
CheckMustUseRewriter ("Description: Must use the rewriter when using Contract.Requires<TException>",
@@ -76,6 +78,7 @@ public void TestRequiresTException ()
/// Contract.Ensures() ALWAYS triggers an assert, regardless of any other factors.
/// </summary>
[Test]
+ [Ignore ("This causes NUnit crash on .NET 4.0")]
public void TestEnsures ()
{
CheckMustUseRewriter ("Description: Must use the rewriter when using Contract.Ensures",
@@ -90,6 +93,7 @@ public void TestEnsures ()
/// Contract.Ensures() ALWAYS triggers an assert, regardless of any other factors.
/// </summary>
[Test]
+ [Ignore ("This causes NUnit crash on .NET 4.0")]
public void TestEnsuresOnThrow ()
{
CheckMustUseRewriter ("Description: Must use the rewriter when using Contract.EnsuresOnThrow",
@@ -104,6 +108,7 @@ public void TestEnsuresOnThrow ()
/// Contract.Ensures() ALWAYS triggers an assert, regardless of any other factors.
/// </summary>
[Test]
+ [Ignore ("This causes NUnit crash on .NET 4.0")]
public void TestInvariant ()
{
CheckMustUseRewriter ("Description: Must use the rewriter when using Contract.Invariant",

0 comments on commit 7aeb07d

Please sign in to comment.