Search Results for

    Show / Hide Table of Contents

    Interface ISuiteBuilder

    The ISuiteBuilder interface is exposed by a class that knows how to build a single test suite from a specified type.

    Namespace: NUnit.Framework.Interfaces
    Assembly: nunit.framework.dll
    Syntax
    public interface ISuiteBuilder

    Methods

    View Source

    BuildFrom(ITypeInfo)

    Builds a single test suite from the specified type.

    Declaration
    TestSuite BuildFrom(ITypeInfo typeInfo)
    Parameters
    Type Name Description
    ITypeInfo typeInfo

    The type of the fixture to be used

    Returns
    Type Description
    TestSuite
    View Source

    BuildFrom(ITypeInfo, IPreFilter)

    Builds a single test suite from the specified type, subject to a filter that decides which methods are included.

    Declaration
    TestSuite BuildFrom(ITypeInfo typeInfo, IPreFilter filter)
    Parameters
    Type Name Description
    ITypeInfo typeInfo

    The type of the fixture to be used

    IPreFilter filter

    A PreFilter for selecting methods.

    Returns
    Type Description
    TestSuite
    View Source

    CanBuildFrom(ITypeInfo)

    Examine the type and determine if it is suitable for this builder to use in building a TestSuite.

    Note that returning false will cause the type to be ignored in loading the tests. If it is desired to load the suite but label it as non-runnable, ignored, etc., then this method must return true.

    Declaration
    bool CanBuildFrom(ITypeInfo typeInfo)
    Parameters
    Type Name Description
    ITypeInfo typeInfo

    The type of the fixture to be used

    Returns
    Type Description
    bool
    • 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