File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
tests/Magick.NET.Tests/TestHelpers Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -10,5 +10,7 @@ internal static partial class Runtime
1010{
1111 public static bool Is64Bit { get ; } = IntPtr . Size == 8 ;
1212
13+ public static bool IsArm64 { get ; } = RuntimeInformation . ProcessArchitecture == Architecture . Arm64 ;
14+
1315 public static bool IsWindows { get ; } = RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) ;
1416}
Original file line number Diff line number Diff line change 22// Licensed under the Apache License, Version 2.0.
33
44using System . Runtime . InteropServices ;
5+ using ImageMagick ;
56
67namespace Magick . NET . Tests ;
78
89internal static class TestRuntime
910{
1011 public static bool HasFlakyLinuxArm64Result
11- => IsLinux && IsArm64 ;
12+ => IsLinux && Runtime . IsArm64 ;
1213
1314 public static bool HasFlakyMacOSResult
1415 => IsMacOS ;
1516
1617 public static bool HasFlakyMacOSArm64Result
17- => IsMacOS && IsArm64 ;
18-
19- private static bool IsArm64 { get ; } = RuntimeInformation . ProcessArchitecture == Architecture . Arm64 ;
18+ => IsMacOS && Runtime . IsArm64 ;
2019
2120 private static bool IsLinux { get ; } = RuntimeInformation . IsOSPlatform ( OSPlatform . Linux ) ;
2221
You can’t perform that action at this time.
0 commit comments