<PackageReference Include="NUnit" Version="4.3.1" />

NUnit.Framework.Internal.PlatformHelper

public class PlatformHelper
PlatformHelper class is used by the PlatformAttribute class to determine whether a platform is supported.
namespace NUnit.Framework.Internal { public class PlatformHelper { public const string OSPlatforms = "Win,Win32,Win32S,Win32NT,Win32Windows,Win95,Win98,WinMe,NT3,NT4,NT5,NT6,Win2008Server,Win2008ServerR2,Win2012Server,Win2012ServerR2,Win2K,WinXP,Win2003Server,Vista,Win7,Windows7,Win8,Windows8,Win8.1,Windows8.1,Win10,Windows10,Win11,Windows11,WindowsServer10,Unix,Linux,Xbox,MacOSX"; public static readonly string RuntimePlatforms; public string Reason { get; } public PlatformHelper(); public PlatformHelper(OSPlatform os, RuntimeFramework rt); public bool IsPlatformSupported(string[] platforms); public bool IsPlatformSupported(PlatformAttribute platformAttribute); public bool IsPlatformSupported(TestCaseAttribute testCaseAttribute); public bool IsPlatformSupported(string platform); } }