File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
tests/Magick.NET.Tests/TestHelpers Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,5 @@ 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-
15- public static bool IsLinux { get ; } = RuntimeInformation . IsOSPlatform ( OSPlatform . Linux ) ;
16-
17- public static bool IsMacOS { get ; } = RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) ;
18-
1913 public static bool IsWindows { get ; } = RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) ;
2014}
Original file line number Diff line number Diff line change 11// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.NET.
22// Licensed under the Apache License, Version 2.0.
33
4- using ImageMagick ;
4+ using System . Runtime . InteropServices ;
55
66namespace Magick . NET . Tests ;
77
88internal static class TestRuntime
99{
1010 public static bool HasFlakyLinuxArm64Result
11- => Runtime . IsLinux && Runtime . IsArm64 ;
11+ => IsLinux && IsArm64 ;
1212
1313 public static bool HasFlakyMacOSResult
14- => Runtime . IsMacOS ;
14+ => IsMacOS ;
1515
1616 public static bool HasFlakyMacOSArm64Result
17- => Runtime . IsMacOS && Runtime . IsArm64 ;
17+ => IsMacOS && IsArm64 ;
18+
19+ private static bool IsArm64 { get ; } = RuntimeInformation . ProcessArchitecture == Architecture . Arm64 ;
20+
21+ private static bool IsLinux { get ; } = RuntimeInformation . IsOSPlatform ( OSPlatform . Linux ) ;
22+
23+ private static bool IsMacOS { get ; } = RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) ;
1824}
You can’t perform that action at this time.
0 commit comments