Table of Contents

Class IncludeExcludeAttribute

Namespace
NUnit.Framework
Assembly
nunit.framework.dll

Abstract base for Attributes that are used to include tests in the test run based on environmental settings.

public abstract class IncludeExcludeAttribute : NUnitAttribute
Inheritance
IncludeExcludeAttribute
Derived
Inherited Members

Constructors

IncludeExcludeAttribute()

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

public IncludeExcludeAttribute()

IncludeExcludeAttribute(string)

Constructor taking one or more included items

public IncludeExcludeAttribute(string include)

Parameters

include string

Comma-delimited list of included items

Properties

Exclude

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

public string Exclude { get; set; }

Property Value

string

Include

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

public string Include { get; set; }

Property Value

string

Reason

The reason for including or excluding the test

public string Reason { get; set; }

Property Value

string