@@ -23,6 +23,11 @@ public class SystemDrawingReferenceCodecTests
2323 public void To32bppArgbSystemDrawingBitmap < TPixel > ( TestImageProvider < TPixel > provider )
2424 where TPixel : unmanaged, IPixel < TPixel >
2525 {
26+ if ( TestEnvironment . IsMacOS && TestEnvironment . IsArm64Process )
27+ {
28+ return ;
29+ }
30+
2631 using Image < TPixel > image = provider . GetImage ( ) ;
2732 using System . Drawing . Bitmap sdBitmap = SystemDrawingBridge . To32bppArgbSystemDrawingBitmap ( image ) ;
2833 string fileName = provider . Utility . GetTestOutputFileName ( "png" ) ;
@@ -34,6 +39,11 @@ public void To32bppArgbSystemDrawingBitmap<TPixel>(TestImageProvider<TPixel> pro
3439 public void From32bppArgbSystemDrawingBitmap < TPixel > ( TestImageProvider < TPixel > dummyProvider )
3540 where TPixel : unmanaged, IPixel < TPixel >
3641 {
42+ if ( TestEnvironment . IsMacOS && TestEnvironment . IsArm64Process )
43+ {
44+ return ;
45+ }
46+
3747 string path = TestFile . GetInputFileFullPath ( TestImages . Png . Splash ) ;
3848
3949 using Bitmap sdBitmap = new ( path ) ;
@@ -59,7 +69,7 @@ private static string SavePng<TPixel>(TestImageProvider<TPixel> provider, PngCol
5969 public void From32bppArgbSystemDrawingBitmap2 < TPixel > ( TestImageProvider < TPixel > provider )
6070 where TPixel : unmanaged, IPixel < TPixel >
6171 {
62- if ( TestEnvironment . IsLinux )
72+ if ( TestEnvironment . IsLinux || ( TestEnvironment . IsArm64Process && TestEnvironment . IsMacOS ) )
6373 {
6474 return ;
6575 }
@@ -78,6 +88,11 @@ public void From32bppArgbSystemDrawingBitmap2<TPixel>(TestImageProvider<TPixel>
7888 public void From24bppRgbSystemDrawingBitmap < TPixel > ( TestImageProvider < TPixel > provider )
7989 where TPixel : unmanaged, IPixel < TPixel >
8090 {
91+ if ( TestEnvironment . IsMacOS && TestEnvironment . IsArm64Process )
92+ {
93+ return ;
94+ }
95+
8196 string path = SavePng ( provider , PngColorType . Rgb ) ;
8297
8398 using Image < TPixel > original = provider . GetImage ( ) ;
@@ -92,6 +107,11 @@ public void From24bppRgbSystemDrawingBitmap<TPixel>(TestImageProvider<TPixel> pr
92107 public void OpenWithReferenceDecoder < TPixel > ( TestImageProvider < TPixel > dummyProvider )
93108 where TPixel : unmanaged, IPixel < TPixel >
94109 {
110+ if ( TestEnvironment . IsMacOS && TestEnvironment . IsArm64Process )
111+ {
112+ return ;
113+ }
114+
95115 string path = TestFile . GetInputFileFullPath ( TestImages . Png . Splash ) ;
96116 using FileStream stream = File . OpenRead ( path ) ;
97117 using Image < TPixel > image = SystemDrawingReferenceDecoder . Png . Decode < TPixel > ( DecoderOptions . Default , stream ) ;
@@ -103,6 +123,11 @@ public void OpenWithReferenceDecoder<TPixel>(TestImageProvider<TPixel> dummyProv
103123 public void SaveWithReferenceEncoder < TPixel > ( TestImageProvider < TPixel > provider )
104124 where TPixel : unmanaged, IPixel < TPixel >
105125 {
126+ if ( TestEnvironment . IsMacOS && TestEnvironment . IsArm64Process )
127+ {
128+ return ;
129+ }
130+
106131 using Image < TPixel > image = provider . GetImage ( ) ;
107132 provider . Utility . SaveTestOutputFile ( image , "png" , SystemDrawingReferenceEncoder . Png ) ;
108133 }
0 commit comments