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 SourceBuildFrom(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 |
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 |
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 |