From d265a0f34536368384c3fcda9543c692d0b7f12b Mon Sep 17 00:00:00 2001 From: triton Date: Wed, 2 Sep 2015 17:33:24 +0100 Subject: [PATCH] Remove unnecessary workarounds in test suite for P/Invoke fixed arrays bug. --- tests/CSharpTemp/CSharpTemp.Tests.cs | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/tests/CSharpTemp/CSharpTemp.Tests.cs b/tests/CSharpTemp/CSharpTemp.Tests.cs index 978b0fcd..f6468564 100644 --- a/tests/CSharpTemp/CSharpTemp.Tests.cs +++ b/tests/CSharpTemp/CSharpTemp.Tests.cs @@ -37,17 +37,9 @@ public class CSharpTempTests : GeneratorTestFixture } using (var hasOverride = new HasOverrideOfHasPropertyWithDerivedType()) hasOverride.CauseRenamingError(); - // TODO: remove when the bug in question is fixed - if (Type.GetType("Mono.Runtime") != null) + using (var qux = new Qux()) { - Assert.Fail("Crashes with Mono because of a problem with marshalling arrays: https://gist.github.com/tritao/7e62c71ffe57d6bc326e"); - } - else - { - using (var qux = new Qux()) - { - new Bar(qux).Dispose(); - } + new Bar(qux).Dispose(); } using (ComplexType complexType = TestFlag.Flag1) { @@ -85,11 +77,6 @@ public class CSharpTempTests : GeneratorTestFixture [Test] public void TestMultipleInheritance() { - // TODO: remove when the bug in question is fixed - if (Type.GetType("Mono.Runtime") != null) - { - Assert.Fail("Crashes with Mono because of a problem with marshalling arrays: https://gist.github.com/tritao/7e62c71ffe57d6bc326e"); - } using (var baz = new Baz()) { Assert.That(baz.Method, Is.EqualTo(1));