Table of Contents

Class DefaultTestAssemblyBuilder

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

DefaultTestAssemblyBuilder loads a single assembly and builds a TestSuite containing test fixtures present in the assembly.

public class DefaultTestAssemblyBuilder : ITestAssemblyBuilder
Inheritance
DefaultTestAssemblyBuilder
Implements
Inherited Members

Constructors

DefaultTestAssemblyBuilder()

Initializes a new instance of the DefaultTestAssemblyBuilder class.

public DefaultTestAssemblyBuilder()

Methods

Build(Assembly, IDictionary<string, object>)

Build a suite of tests from a provided assembly

public ITest Build(Assembly assembly, IDictionary<string, object> options)

Parameters

assembly Assembly

The assembly from which tests are to be built

options IDictionary<string, object>

A dictionary of options to use in building the suite

Returns

ITest

A TestSuite containing the tests found in the assembly

Build(string, IDictionary<string, object>)

Build a suite of tests given the name or the location of an assembly

public ITest Build(string assemblyNameOrPath, IDictionary<string, object> options)

Parameters

assemblyNameOrPath string

The name or the location of the assembly.

options IDictionary<string, object>

A dictionary of options to use in building the suite

Returns

ITest

A TestSuite containing the tests found in the assembly