Table of Contents

Class IdFilter

Namespace
NUnit.Framework.Internal.Filters
Assembly
nunit.framework.dll

IdFilter selects tests based on their id

public class IdFilter : ValueMatchFilter<string>, ITestFilter
Inheritance
IdFilter
Implements
Inherited Members

Constructors

IdFilter()

Construct an empty IdFilter

public IdFilter()

IdFilter(IEnumerable<string>)

Construct a IdFilter for multiple ids

public IdFilter(IEnumerable<string> ids)

Parameters

ids IEnumerable<string>

The ids the filter will recognize.

IdFilter(string)

Construct an IdFilter for a single value

public IdFilter(string id)

Parameters

id string

The id the filter will recognize.

Methods

Match(ITest, string)

Match a test against a single value.

protected override bool Match(ITest test, string id)

Parameters

test ITest
id string

Returns

bool