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

NUnit.Framework.PlatformAttribute

Marks an assembly, test fixture or test method as applying to a specific platform.

Constructor with no platforms specified, for use with named property syntax.

public PlatformAttribute(string platforms)

Constructor taking one or more platforms

public void ApplyToTest(Test test)

Causes a test to be skipped if this PlatformAttribute is not satisfied.