Skip to content

Commit 5f2f858

Browse files
author
Sridhar Nanjundeswaran
committed
Unit test failure fix for CSHARP-389
1 parent cf221ae commit 5f2f858

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

MongoDB.DriverUnitTests/Jira/CSharp355Tests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ public void TestDefaultBitmap()
7171
[Test]
7272
public void TestBitmap()
7373
{
74+
if (TestEnvironment.IsMono)
75+
{
76+
// This test does not work in Mono on Ubuntu. Throws a
77+
// System.TypeInitializationException on the Bitmap
78+
// construction
79+
return;
80+
}
7481
var bitmap = GetTestBitmap();
7582
var c = new C { I = bitmap, B = bitmap };
7683
_collection.RemoveAll();

0 commit comments

Comments
 (0)