Browse Source

Remove unnecessary workarounds in test suite for P/Invoke fixed arrays bug.

pull/547/head
triton 10 years ago
parent
commit
d265a0f345
  1. 17
      tests/CSharpTemp/CSharpTemp.Tests.cs

17
tests/CSharpTemp/CSharpTemp.Tests.cs

@ -37,17 +37,9 @@ public class CSharpTempTests : GeneratorTestFixture
} }
using (var hasOverride = new HasOverrideOfHasPropertyWithDerivedType()) using (var hasOverride = new HasOverrideOfHasPropertyWithDerivedType())
hasOverride.CauseRenamingError(); hasOverride.CauseRenamingError();
// TODO: remove when the bug in question is fixed using (var qux = new Qux())
if (Type.GetType("Mono.Runtime") != null)
{ {
Assert.Fail("Crashes with Mono because of a problem with marshalling arrays: https://gist.github.com/tritao/7e62c71ffe57d6bc326e"); new Bar(qux).Dispose();
}
else
{
using (var qux = new Qux())
{
new Bar(qux).Dispose();
}
} }
using (ComplexType complexType = TestFlag.Flag1) using (ComplexType complexType = TestFlag.Flag1)
{ {
@ -85,11 +77,6 @@ public class CSharpTempTests : GeneratorTestFixture
[Test] [Test]
public void TestMultipleInheritance() 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()) using (var baz = new Baz())
{ {
Assert.That(baz.Method, Is.EqualTo(1)); Assert.That(baz.Method, Is.EqualTo(1));

Loading…
Cancel
Save