@@ -48,6 +48,9 @@ protected ExecuteForPlatformApp(ITestOutputHelper output)
4848
4949 protected abstract string GetPlatformOutputFileName ( string file ) ;
5050
51+ protected virtual string GetPlatformCopyOutputFileName ( string file ) =>
52+ GetPlatformOutputFileName ( file ) ;
53+
5154 protected ResizetizeImages GetNewTask ( params ITaskItem [ ] items ) =>
5255 GetNewTask ( Platform , items ) ;
5356
@@ -74,7 +77,10 @@ public void BasicImageProcessingWorks(string image)
7477 var success = task . Execute ( ) ;
7578 Assert . True ( success , LogErrorEvents . FirstOrDefault ( ) ? . Message ) ;
7679
77- AssertFileExists ( GetPlatformOutputFileName ( Path . ChangeExtension ( image , ".png" ) ) ) ;
80+ if ( Path . GetExtension ( image ) == ".png" || Path . GetExtension ( image ) == ".jpeg" || Path . GetExtension ( image ) == ".gif" )
81+ AssertFileExists ( GetPlatformCopyOutputFileName ( Path . ChangeExtension ( image , ".png" ) ) ) ;
82+ else
83+ AssertFileExists ( GetPlatformOutputFileName ( Path . ChangeExtension ( image , ".png" ) ) ) ;
7884 }
7985
8086 [ Theory ]
@@ -242,6 +248,9 @@ public ExecuteForAndroid(ITestOutputHelper output)
242248 protected override string GetPlatformOutputFileName ( string file ) =>
243249 $ "drawable-mdpi/{ file } ";
244250
251+ protected override string GetPlatformCopyOutputFileName ( string file ) =>
252+ $ "drawable/{ file } ";
253+
245254 [ Fact ]
246255 public void NoItemsSucceed ( )
247256 {
@@ -995,7 +1004,11 @@ public ExecuteForiOS(ITestOutputHelper output)
9951004
9961005 protected override string Platform => "ios" ;
9971006
998- protected override string GetPlatformOutputFileName ( string file ) => $ "{ file } ";
1007+ protected override string GetPlatformOutputFileName ( string file ) =>
1008+ $ "{ file } ";
1009+
1010+ protected override string GetPlatformCopyOutputFileName ( string file ) =>
1011+ $ "Resources/{ file } ";
9991012
10001013 [ Fact ]
10011014 public void NoItemsSucceed ( )
0 commit comments