Table of Contents

Class SimpleNameFilter

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

SimpleName filter selects tests based on their name

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

Constructors

SimpleNameFilter()

Construct an empty SimpleNameFilter

public SimpleNameFilter()

SimpleNameFilter(IEnumerable<string>)

Construct a SimpleNameFilter for an array of ids

public SimpleNameFilter(IEnumerable<string> namesToAdd)

Parameters

namesToAdd IEnumerable<string>

The ids the filter will recognize.

SimpleNameFilter(string)

Construct a SimpleNameFilter for a single name

public SimpleNameFilter(string nameToAdd)

Parameters

nameToAdd string

The name the filter will recognize.

Methods

Match(ITest, string)

Match a test against a single value.

protected override bool Match(ITest test, string value)

Parameters

test ITest
value string

Returns

bool