Search Results for

    Show / Hide Table of Contents

    Interface ITestFilter

    Interface to be implemented by filters applied to tests. The filter applies when running the test, after it has been loaded, since this is the only time an ITest exists.

    Inherited Members
    IXmlNodeBuilder.ToXml(bool)
    IXmlNodeBuilder.AddToXml(TNode, bool)
    Namespace: NUnit.Framework.Interfaces
    Assembly: nunit.framework.dll
    Syntax
    public interface ITestFilter : IXmlNodeBuilder

    Methods

    View Source

    IsExplicitMatch(ITest)

    Determine if a test matches the filter explicitly. That is, it must be a direct match of the test itself or one of its children.

    Declaration
    bool IsExplicitMatch(ITest test)
    Parameters
    Type Name Description
    ITest test

    The test to which the filter is applied

    Returns
    Type Description
    bool

    True if the test matches the filter explicitly, otherwise false

    View Source

    Pass(ITest)

    Determine if a particular test passes the filter criteria. Pass may examine the parents and/or descendants of a test, depending on the semantics of the particular filter

    Declaration
    bool Pass(ITest test)
    Parameters
    Type Name Description
    ITest test

    The test to which the filter is applied

    Returns
    Type Description
    bool

    True if the test passes the filter, otherwise false

    • View Source
    In this article
    Back to top Generated by DocFX | Copyright (c) 2018- The NUnit Project - Licensed under CC BY-NC-SA 4.0