Table of Contents

Interface ISuiteBuilder

Namespace
NUnit.Framework.Interfaces
Assembly
nunit.framework.dll

The ISuiteBuilder interface is exposed by a class that knows how to build a suite from one or more Types.

public interface ISuiteBuilder

Methods

BuildFrom(Type)

Build a TestSuite from type provided.

Test BuildFrom(Type type)

Parameters

type Type

The type of the fixture to be used

Returns

Test

A TestSuite

CanBuildFrom(Type)

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(Type type)

Parameters

type Type

The type of the fixture to be used

Returns

bool

True if the type can be used to build a TestSuite