// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.NET.
// Licensed under the Apache License, Version 2.0.

using System.Runtime.InteropServices;
using ImageMagick;

namespace Magick.NET.Tests;

internal static class TestRuntime
{
    static TestRuntime()
    {
        var isLinux = RuntimeInformation.IsOSPlatform(OSPlatform.Linux);
        var isMacOS = RuntimeInformation.IsOSPlatform(OSPlatform.OSX);

        IsArm64 = Runtime.Architecture == Architecture.Arm64;
        IsLinuxArm64 = isLinux && IsArm64;
        IsMacOS = isMacOS;
        IsMacOSArm64 = isMacOS && IsArm64;
    }

    public static bool IsArm64 { get; }

    public static bool IsLinuxArm64 { get; }

    public static bool IsMacOS { get; }

    public static bool IsMacOSArm64 { get; }
}
