Interface ISuiteBuilder
- Namespace
- NUnit.Framework.Interfaces
- Assembly
- nunit.framework.dll
The ISuiteBuilder interface is exposed by a class that knows how to build a single test suite from a specified type.
public interface ISuiteBuilder
Methods
BuildFrom(ITypeInfo)
Builds a single test suite from the specified type.
TestSuite BuildFrom(ITypeInfo typeInfo)
Parameters
typeInfo
ITypeInfoThe type of the fixture to be used
Returns
BuildFrom(ITypeInfo, IPreFilter)
Builds a single test suite from the specified type, subject to a filter that decides which methods are included.
TestSuite BuildFrom(ITypeInfo typeInfo, IPreFilter filter)
Parameters
typeInfo
ITypeInfoThe type of the fixture to be used
filter
IPreFilterA PreFilter for selecting methods.
Returns
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.
bool CanBuildFrom(ITypeInfo typeInfo)
Parameters
typeInfo
ITypeInfoThe type of the fixture to be used