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

PlatformAttribute

PlatformAttribute is used to mark a test fixture or an individual method as applying to a particular platform only.

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.