Skip to content

Commit

Permalink
Removed unused field and did some minor refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Sep 12, 2024
1 parent 6a99e4f commit 6fba26f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/Magick.NET.Tests/TestHelpers/TestRuntime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ internal static class TestRuntime
{
static TestRuntime()
{
HasFlakyLinuxArm64Result = RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && Runtime.Architecture is Architecture.Arm64;
HasFlakyMacOSResult = RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
HasFlakyMacOSArm64Result = HasFlakyMacOSResult && Runtime.Architecture == Architecture.Arm64;
var isLinux = RuntimeInformation.IsOSPlatform(OSPlatform.Linux);
var isMacOS = RuntimeInformation.IsOSPlatform(OSPlatform.OSX);

HasFlakyLinuxArm64Result = isLinux && Runtime.Architecture == Architecture.Arm64;
HasFlakyMacOSResult = isMacOS;
HasFlakyMacOSArm64Result = isMacOS && Runtime.Architecture == Architecture.Arm64;
}

public static bool HasFlakyLinuxArm64Result { get; }

public static bool HasFlakyMacOSResult { get; }

public static bool HasFlakyMacOSArm64Result { get; }

private static bool IsMacOS { get; }
}

0 comments on commit 6fba26f

Please sign in to comment.