File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
tests/Magick.NET.Tests/TestHelpers Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -10,16 +10,17 @@ internal static class TestRuntime
1010{
1111 static TestRuntime ( )
1212 {
13- HasFlakyLinuxArm64Result = RuntimeInformation . IsOSPlatform ( OSPlatform . Linux ) && Runtime . Architecture is Architecture . Arm64 ;
14- HasFlakyMacOSResult = RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) ;
15- HasFlakyMacOSArm64Result = HasFlakyMacOSResult && Runtime . Architecture == Architecture . Arm64 ;
13+ var isLinux = RuntimeInformation . IsOSPlatform ( OSPlatform . Linux ) ;
14+ var isMacOS = RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) ;
15+
16+ HasFlakyLinuxArm64Result = isLinux && Runtime . Architecture == Architecture . Arm64 ;
17+ HasFlakyMacOSResult = isMacOS ;
18+ HasFlakyMacOSArm64Result = isMacOS && Runtime . Architecture == Architecture . Arm64 ;
1619 }
1720
1821 public static bool HasFlakyLinuxArm64Result { get ; }
1922
2023 public static bool HasFlakyMacOSResult { get ; }
2124
2225 public static bool HasFlakyMacOSArm64Result { get ; }
23-
24- private static bool IsMacOS { get ; }
2526}
You can’t perform that action at this time.
0 commit comments