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

IncludeExcludeAttribute

public abstract class IncludeExcludeAttribute : NUnitAttribute
Abstract base for Attributes that are used to include tests in the test run based on environmental settings.
public string Exclude { get; set; }

Name of the item to be excluded. Multiple items may be given, separated by a comma.

public string Include { get; set; }

Name of the item that is needed in order for a test to run. Multiple items may be given, separated by a comma.

public string Reason { get; set; }

The reason for including or excluding the test

Constructor with no included items specified, for use with named property syntax.

public IncludeExcludeAttribute(string include)

Constructor taking one or more included items