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<int>, ITestFilter
Inheritance
IdFilter
Implements
Inherited Members

Constructors

IdFilter()

Construct an empty IdFilter

public IdFilter()

IdFilter(IEnumerable<int>)

Construct a IdFilter for multiple ids

public IdFilter(IEnumerable<int> ids)

Parameters

ids IEnumerable<int>

The ids the filter will recognize.

IdFilter(int)

Construct an IdFilter for a single value

public IdFilter(int id)

Parameters

id int

The id the filter will recognize.

Methods

Match(ITest, int)

Match a test against a single value.

protected override bool Match(ITest test, int id)

Parameters

test ITest
id int

Returns

bool