@@ -175,13 +175,31 @@ public void Encode_8BitGray_WithV3Header_Works<TPixel>(TestImageProvider<TPixel>
175175
176176 [ Theory ]
177177 [ WithFile ( Bit4 , PixelTypes . Rgba32 , BmpBitsPerPixel . Pixel4 ) ]
178- public void Encode_4Bit_WithV3Header_Works < TPixel > ( TestImageProvider < TPixel > provider , BmpBitsPerPixel bitsPerPixel )
179- where TPixel : unmanaged, IPixel < TPixel > => TestBmpEncoderCore ( provider , bitsPerPixel , supportTransparency : false ) ;
178+ public void Encode_4Bit_WithV3Header_Works < TPixel > (
179+ TestImageProvider < TPixel > provider ,
180+ BmpBitsPerPixel bitsPerPixel )
181+ where TPixel : unmanaged, IPixel < TPixel >
182+ {
183+ // The Magick Reference Decoder can not decode 4-Bit bitmaps, so only execute this on windows.
184+ if ( TestEnvironment . IsWindows )
185+ {
186+ TestBmpEncoderCore ( provider , bitsPerPixel , supportTransparency : false ) ;
187+ }
188+ }
180189
181190 [ Theory ]
182191 [ WithFile ( Bit4 , PixelTypes . Rgba32 , BmpBitsPerPixel . Pixel4 ) ]
183- public void Encode_4Bit_WithV4Header_Works < TPixel > ( TestImageProvider < TPixel > provider , BmpBitsPerPixel bitsPerPixel )
184- where TPixel : unmanaged, IPixel < TPixel > => TestBmpEncoderCore ( provider , bitsPerPixel , supportTransparency : true ) ;
192+ public void Encode_4Bit_WithV4Header_Works < TPixel > (
193+ TestImageProvider < TPixel > provider ,
194+ BmpBitsPerPixel bitsPerPixel )
195+ where TPixel : unmanaged, IPixel < TPixel >
196+ {
197+ // The Magick Reference Decoder can not decode 4-Bit bitmaps, so only execute this on windows.
198+ if ( TestEnvironment . IsWindows )
199+ {
200+ TestBmpEncoderCore ( provider , bitsPerPixel , supportTransparency : true ) ;
201+ }
202+ }
185203
186204 [ Theory ]
187205 [ WithFile ( Bit8Gs , PixelTypes . L8 , BmpBitsPerPixel . Pixel8 ) ]
0 commit comments