77using System . Drawing ;
88using System . IO ;
99using System . Linq ;
10- using System . Runtime . InteropServices ;
1110using Microsoft . ML . Data ;
1211using Microsoft . ML . Model ;
1312using Microsoft . ML . RunTests ;
@@ -27,11 +26,6 @@ public ImageTests(ITestOutputHelper output) : base(output)
2726 [ Fact ]
2827 public void TestEstimatorChain ( )
2928 {
30- if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
31- {
32- return ;
33- }
34-
3529 var env = new MLContext ( ) ;
3630 var dataFile = GetDataPath ( "images/images.tsv" ) ;
3731 var imageFolder = Path . GetDirectoryName ( dataFile ) ;
@@ -107,11 +101,6 @@ public void TestEstimatorSaveLoad()
107101 [ Fact ]
108102 public void TestSaveImages ( )
109103 {
110- if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
111- {
112- return ;
113- }
114-
115104 var env = new MLContext ( ) ;
116105 var dataFile = GetDataPath ( "images/images.tsv" ) ;
117106 var imageFolder = Path . GetDirectoryName ( dataFile ) ;
@@ -147,11 +136,6 @@ public void TestSaveImages()
147136 [ Fact ]
148137 public void TestGreyscaleTransformImages ( )
149138 {
150- if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
151- {
152- return ;
153- }
154-
155139 IHostEnvironment env = new MLContext ( ) ;
156140 var imageHeight = 150 ;
157141 var imageWidth = 100 ;
@@ -203,11 +187,6 @@ public void TestGreyscaleTransformImages()
203187 [ Fact ]
204188 public void TestGrayScaleInMemory ( )
205189 {
206- if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
207- {
208- return ;
209- }
210-
211190 // Create an image list.
212191 var images = new List < ImageDataPoint > ( ) { new ImageDataPoint ( 10 , 10 , Color . Blue ) , new ImageDataPoint ( 10 , 10 , Color . Red ) } ;
213192
@@ -291,11 +270,6 @@ public ImageDataPoint(int width, int height, Color color)
291270 [ Fact ]
292271 public void TestBackAndForthConversionWithAlphaInterleave ( )
293272 {
294- if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
295- {
296- return ;
297- }
298-
299273 IHostEnvironment env = new MLContext ( ) ;
300274 const int imageHeight = 100 ;
301275 const int imageWidth = 130 ;
@@ -353,11 +327,6 @@ public void TestBackAndForthConversionWithAlphaInterleave()
353327 [ Fact ]
354328 public void TestBackAndForthConversionWithoutAlphaInterleave ( )
355329 {
356- if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
357- {
358- return ;
359- }
360-
361330 IHostEnvironment env = new MLContext ( ) ;
362331 const int imageHeight = 100 ;
363332 const int imageWidth = 130 ;
@@ -415,11 +384,6 @@ public void TestBackAndForthConversionWithoutAlphaInterleave()
415384 [ Fact ]
416385 public void TestBackAndForthConversionWithDifferentOrder ( )
417386 {
418- if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
419- {
420- return ;
421- }
422-
423387 IHostEnvironment env = new MLContext ( ) ;
424388 const int imageHeight = 100 ;
425389 const int imageWidth = 130 ;
@@ -479,11 +443,6 @@ public void TestBackAndForthConversionWithDifferentOrder()
479443 [ Fact ]
480444 public void TestBackAndForthConversionWithAlphaNoInterleave ( )
481445 {
482- if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
483- {
484- return ;
485- }
486-
487446 IHostEnvironment env = new MLContext ( ) ;
488447 const int imageHeight = 100 ;
489448 const int imageWidth = 130 ;
@@ -541,11 +500,6 @@ public void TestBackAndForthConversionWithAlphaNoInterleave()
541500 [ Fact ]
542501 public void TestBackAndForthConversionWithoutAlphaNoInterleave ( )
543502 {
544- if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
545- {
546- return ;
547- }
548-
549503 IHostEnvironment env = new MLContext ( ) ;
550504 const int imageHeight = 100 ;
551505 const int imageWidth = 130 ;
@@ -603,11 +557,6 @@ public void TestBackAndForthConversionWithoutAlphaNoInterleave()
603557 [ Fact ]
604558 public void TestBackAndForthConversionWithAlphaInterleaveNoOffset ( )
605559 {
606- if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
607- {
608- return ;
609- }
610-
611560 IHostEnvironment env = new MLContext ( ) ;
612561 const int imageHeight = 100 ;
613562 const int imageWidth = 130 ;
@@ -666,11 +615,6 @@ public void TestBackAndForthConversionWithAlphaInterleaveNoOffset()
666615 [ Fact ]
667616 public void TestBackAndForthConversionWithoutAlphaInterleaveNoOffset ( )
668617 {
669- if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
670- {
671- return ;
672- }
673-
674618 IHostEnvironment env = new MLContext ( ) ;
675619 const int imageHeight = 100 ;
676620 const int imageWidth = 130 ;
@@ -728,11 +672,6 @@ public void TestBackAndForthConversionWithoutAlphaInterleaveNoOffset()
728672 [ Fact ]
729673 public void TestBackAndForthConversionWithAlphaNoInterleaveNoOffset ( )
730674 {
731- if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
732- {
733- return ;
734- }
735-
736675 IHostEnvironment env = new MLContext ( ) ;
737676 const int imageHeight = 100 ;
738677 var imageWidth = 130 ;
@@ -791,11 +730,6 @@ public void TestBackAndForthConversionWithAlphaNoInterleaveNoOffset()
791730 [ Fact ]
792731 public void TestBackAndForthConversionWithoutAlphaNoInterleaveNoOffset ( )
793732 {
794- if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
795- {
796- return ;
797- }
798-
799733 IHostEnvironment env = new MLContext ( ) ;
800734 const int imageHeight = 100 ;
801735 const int imageWidth = 130 ;
@@ -852,11 +786,6 @@ public void TestBackAndForthConversionWithoutAlphaNoInterleaveNoOffset()
852786 [ Fact ]
853787 public void ImageResizerTransformResizingModeFill ( )
854788 {
855- if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
856- {
857- return ;
858- }
859-
860789 var env = new MLContext ( ) ;
861790 var dataFile = GetDataPath ( "images/fillmode.tsv" ) ;
862791 var imageFolder = Path . GetDirectoryName ( dataFile ) ;
0 commit comments