@@ -10,32 +10,32 @@ namespace Magick.NET.Tests;
1010
1111public abstract class ImageOptimizerTestHelper
1212{
13- protected long AssertCompressSmaller ( string fileName , Func < FileInfo , bool > action )
13+ protected static long AssertCompressSmaller ( string fileName , Func < FileInfo , bool > action )
1414 => AssertCompress ( fileName , action , resultIsSmaller : true ) ;
1515
16- protected long AssertCompressNotSmaller ( string fileName , Func < FileInfo , bool > action )
16+ protected static long AssertCompressNotSmaller ( string fileName , Func < FileInfo , bool > action )
1717 => AssertCompress ( fileName , action , resultIsSmaller : false ) ;
1818
19- protected long AssertCompressSmaller ( string fileName , Func < Stream , bool > action )
19+ protected static long AssertCompressSmaller ( string fileName , Func < Stream , bool > action )
2020 => AssertCompress ( fileName , action , resultIsSmaller : true ) ;
2121
22- protected long AssertCompressNotSmaller ( string fileName , Func < Stream , bool > action )
22+ protected static long AssertCompressNotSmaller ( string fileName , Func < Stream , bool > action )
2323 => AssertCompress ( fileName , action , resultIsSmaller : false ) ;
2424
25- protected long AssertCompressSmaller ( string fileName , Func < string , bool > action )
25+ protected static long AssertCompressSmaller ( string fileName , Func < string , bool > action )
2626 => AssertCompress ( fileName , action , resultIsSmaller : true ) ;
2727
28- protected long AssertCompressNotSmaller ( string fileName , Func < string , bool > action )
28+ protected static long AssertCompressNotSmaller ( string fileName , Func < string , bool > action )
2929 => AssertCompress ( fileName , action , resultIsSmaller : false ) ;
3030
31- protected void AssertInvalidFileFormat ( string fileName , Action < FileInfo > action )
31+ protected static void AssertInvalidFileFormat ( string fileName , Action < FileInfo > action )
3232 {
3333 using var tempFile = new TemporaryFile ( fileName ) ;
3434
3535 Assert . Throws < MagickCorruptImageErrorException > ( ( ) => action ( tempFile . File ) ) ;
3636 }
3737
38- protected void AssertInvalidFileFormat ( string fileName , Action < Stream > action )
38+ protected static void AssertInvalidFileFormat ( string fileName , Action < Stream > action )
3939 {
4040 using var tempFile = new TemporaryFile ( fileName ) ;
4141 using var fileStream = FileHelper . OpenRead ( fileName ) ;
@@ -46,14 +46,14 @@ protected void AssertInvalidFileFormat(string fileName, Action<Stream> action)
4646 Assert . Throws < MagickCorruptImageErrorException > ( ( ) => action ( memoryStream ) ) ;
4747 }
4848
49- protected void AssertInvalidFileFormat ( string fileName , Action < string > action )
49+ protected static void AssertInvalidFileFormat ( string fileName , Action < string > action )
5050 {
5151 using var tempFile = new TemporaryFile ( fileName ) ;
5252
5353 Assert . Throws < MagickCorruptImageErrorException > ( ( ) => action ( tempFile . File . FullName ) ) ;
5454 }
5555
56- private long AssertCompress ( string fileName , Func < FileInfo , bool > action , bool resultIsSmaller )
56+ private static long AssertCompress ( string fileName , Func < FileInfo , bool > action , bool resultIsSmaller )
5757 {
5858 using var tempFile = new TemporaryFile ( fileName ) ;
5959
@@ -73,7 +73,7 @@ private long AssertCompress(string fileName, Func<FileInfo, bool> action, bool r
7373 return after ;
7474 }
7575
76- private long AssertCompress ( string fileName , Func < Stream , bool > action , bool resultIsSmaller )
76+ private static long AssertCompress ( string fileName , Func < Stream , bool > action , bool resultIsSmaller )
7777 {
7878 using var fileStream = FileHelper . OpenRead ( fileName ) ;
7979 using var memoryStream = new MemoryStream ( ) ;
@@ -100,7 +100,7 @@ private long AssertCompress(string fileName, Func<Stream, bool> action, bool res
100100 return after - 42 ;
101101 }
102102
103- private long AssertCompress ( string fileName , Func < string , bool > action , bool resultIsSmaller )
103+ private static long AssertCompress ( string fileName , Func < string , bool > action , bool resultIsSmaller )
104104 {
105105 using var tempFile = new TemporaryFile ( fileName ) ;
106106
0 commit comments