File tree Expand file tree Collapse file tree 3 files changed +23
-1
lines changed
Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,13 @@ namespace NumSharp.UnitTest
1010 [ TestClass ]
1111 public class BitmapExtensionsTests : TestClass
1212 {
13+ [ ClassInitialize ]
14+ public static void RequireWindows ( TestContext _ )
15+ {
16+ if ( ! OperatingSystem . IsWindows ( ) )
17+ Assert . Inconclusive ( "System.Drawing.Common requires Windows (GDI+)." ) ;
18+ }
19+
1320 // ================================================================
1421 // Bugs discovered during test coverage expansion:
1522 //
Original file line number Diff line number Diff line change 1- using System . Drawing . Imaging ;
1+ using System ;
2+ using System . Drawing . Imaging ;
23using System . Resources ;
34using FluentAssertions ;
45using Microsoft . VisualStudio . TestTools . UnitTesting ;
@@ -9,6 +10,13 @@ namespace NumSharp.UnitTest
910 [ TestClass ]
1011 public class BitmapWithAlphaTests : TestClass
1112 {
13+ [ ClassInitialize ]
14+ public static void RequireWindows ( TestContext _ )
15+ {
16+ if ( ! OperatingSystem . IsWindows ( ) )
17+ Assert . Inconclusive ( "System.Drawing.Common requires Windows (GDI+)." ) ;
18+ }
19+
1220 [ TestMethod ]
1321 public void ToNDArray_Case1 ( )
1422 {
Original file line number Diff line number Diff line change @@ -57,6 +57,13 @@ namespace NumSharp.UnitTest
5757 [ TestClass ]
5858 public class OpenBugsBitmap : TestClass
5959 {
60+ [ ClassInitialize ]
61+ public static void RequireWindows ( TestContext _ )
62+ {
63+ if ( ! OperatingSystem . IsWindows ( ) )
64+ Assert . Inconclusive ( "System.Drawing.Common requires Windows (GDI+)." ) ;
65+ }
66+
6067 // ================================================================
6168 //
6269 // BUG 1: ToNDArray(copy:true) on odd-width 24bpp images produces
You can’t perform that action at this time.
0 commit comments