Table of Contents

Class XunitFilters

Namespace
Xunit.Runner.Common
Assembly
xunit.v3.runner.common.dll

Represents the ability to track query filters or simple filters. Any attempt to add a mix of the two will result in an exception.

public class XunitFilters : ITestCaseFilter
Inheritance
XunitFilters
Implements
Inherited Members

Properties

Empty

Gets a flag indicating whether there are any active filters.

Methods

AddExcludedClassFilter(string)

Adds a simple filter which excludes a fully qualified class name.

AddExcludedMethodFilter(string)

Adds a simple filter which excludes a fully qualified method name. A fully qualified method name is in the form of "FullyQualifiedTypeName.MethodName".

AddExcludedNamespaceFilter(string)

Adds a simple filter which excludes a namespace.

AddExcludedTraitFilter(string, string)

Adds a simple filter which excludes tests with the given name/value pair.

AddIncludedClassFilter(string)

Adds a simple filter matching a fully qualified class name.

AddIncludedMethodFilter(string)

Adds a simple filter which matches a fully qualified method name. A fully qualified method name is in the form of "FullyQualifiedTypeName.MethodName".

AddIncludedNamespaceFilter(string)

Adds a simple filter which matches a namespace.

AddIncludedTraitFilter(string, string)

Adds a simple filter which matches tests with the given name/value pair.

AddQueryFilter(string)

Adds a query filter.

Filter(string, ITestCaseMetadata)

Determines whether the given testCase passes the filter.

ToXunit3Arguments()

Gets the command-line arguments to pass to an xUnit.net v3 test assembly to perform the filtering contained within this filter.