Browse Source

Prevented a crash in the tests on Mono because of a Mono bug.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/520/head
Dimitar Dobrev 10 years ago
parent
commit
e73f490f89
  1. 8
      tests/CSharpTemp/CSharpTemp.Tests.cs

8
tests/CSharpTemp/CSharpTemp.Tests.cs

@ -27,11 +27,19 @@ public class CSharpTempTests : GeneratorTestFixture
var isNoParams = foo.IsNoParams; var isNoParams = foo.IsNoParams;
foo.SetNoParams(); foo.SetNoParams();
} }
// 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");
}
else
{
using (var qux = new Qux()) using (var qux = new Qux())
{ {
new Bar(qux).Dispose(); new Bar(qux).Dispose();
} }
} }
}
[Test] [Test]
public void TestIndexer() public void TestIndexer()

Loading…
Cancel
Save