File tree Expand file tree Collapse file tree 6 files changed +12
-12
lines changed
Settings/MagickSettingsTests Expand file tree Collapse file tree 6 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public void ShouldUseInterlineSpacingSetting()
2626 [ Fact ]
2727 public void ShouldUseTextAntiAliasSetting ( )
2828 {
29- Assert . SkipWhen ( TestRuntime . HasFlakyMacOSArm64Result , "Flaky result on MacOS arm64." ) ;
29+ Assert . SkipWhen ( TestRuntime . IsMacOSArm64 , "Flaky result on MacOS arm64." ) ;
3030
3131 var settings = new MagickReadSettings ( )
3232 {
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ public void ShouldUseWidthAndHeightFromReadSettings()
8888 [ Fact ]
8989 public void ShouldReadFontsWithQuotes ( )
9090 {
91- Assert . SkipWhen ( TestRuntime . HasFlakyMacOSArm64Result , "Flaky result on MacOS arm64." ) ;
91+ Assert . SkipWhen ( TestRuntime . IsMacOSArm64 , "Flaky result on MacOS arm64." ) ;
9292
9393 var svg = @"<?xml version=""1.0"" encoding=""utf-8""?>
9494<svg version=""1.1"" xmlns=""http://www.w3.org/2000/svg"" xmlns:xlink=""http://www.w3.org/1999/xlink"" viewBox=""0 0 220 80"">
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public void ShouldReturnBase64EncodedStringUsingTheSpecifiedFormat()
3535
3636 Assert . NotNull ( base64 ) ;
3737
38- if ( TestRuntime . HasFlakyLinuxArm64Result )
38+ if ( TestRuntime . IsLinuxArm64 )
3939 Assert . InRange ( base64 . Length , 1140 , 1144 ) ;
4040 else
4141 Assert . Equal ( 1140 , base64 . Length ) ;
@@ -44,7 +44,7 @@ public void ShouldReturnBase64EncodedStringUsingTheSpecifiedFormat()
4444
4545 Assert . NotNull ( bytes ) ;
4646
47- if ( TestRuntime . HasFlakyLinuxArm64Result )
47+ if ( TestRuntime . IsLinuxArm64 )
4848 Assert . InRange ( bytes . Length , 853 , 858 ) ;
4949 else
5050 Assert . Equal ( 853 , bytes . Length ) ;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public void ShouldReturnImageWithTheSameFormat()
2828
2929 Assert . NotNull ( data ) ;
3030
31- if ( TestRuntime . HasFlakyLinuxArm64Result )
31+ if ( TestRuntime . IsLinuxArm64 )
3232 Assert . InRange ( data . Length , 18830 , 18831 ) ;
3333 else
3434 Assert . Equal ( 18830 , data . Length ) ;
@@ -50,7 +50,7 @@ public void ShouldUseTheFormatOfTheDefines()
5050
5151 Assert . NotNull ( data ) ;
5252
53- if ( TestRuntime . HasFlakyLinuxArm64Result )
53+ if ( TestRuntime . IsLinuxArm64 )
5454 Assert . InRange ( data . Length , 853 , 858 ) ;
5555 else
5656 Assert . Equal ( 853 , data . Length ) ;
@@ -68,7 +68,7 @@ public void ShouldUseTheSpecifiedFormat()
6868
6969 Assert . NotNull ( data ) ;
7070
71- if ( TestRuntime . HasFlakyLinuxArm64Result )
71+ if ( TestRuntime . IsLinuxArm64 )
7272 Assert . InRange ( data . Length , 60301 , 60304 ) ;
7373 else
7474 Assert . Equal ( 60304 , data . Length ) ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public void ShouldDefaultToNull()
2121 [ Fact ]
2222 public void ShouldSetTheFontWhenReadingImage ( )
2323 {
24- Assert . SkipWhen ( TestRuntime . HasFlakyMacOSArm64Result , "Flaky result on MacOS arm64." ) ;
24+ Assert . SkipWhen ( TestRuntime . IsMacOSArm64 , "Flaky result on MacOS arm64." ) ;
2525
2626 using var image = new MagickImage ( ) ;
2727
Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ static TestRuntime()
1313 var isLinux = RuntimeInformation . IsOSPlatform ( OSPlatform . Linux ) ;
1414 var isMacOS = RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) ;
1515
16- HasFlakyLinuxArm64Result = isLinux && Runtime . Architecture == Architecture . Arm64 ;
17- HasFlakyMacOSArm64Result = isMacOS && Runtime . Architecture == Architecture . Arm64 ;
16+ IsLinuxArm64 = isLinux && Runtime . Architecture == Architecture . Arm64 ;
17+ IsMacOSArm64 = isMacOS && Runtime . Architecture == Architecture . Arm64 ;
1818 }
1919
20- public static bool HasFlakyLinuxArm64Result { get ; }
20+ public static bool IsLinuxArm64 { get ; }
2121
22- public static bool HasFlakyMacOSArm64Result { get ; }
22+ public static bool IsMacOSArm64 { get ; }
2323}
You can’t perform that action at this time.
0 commit comments