Class DefaultTestAssemblyBuilder
DefaultTestAssemblyBuilder loads a single assembly and builds a TestSuite containing test fixtures present in the assembly.
Implements
Inherited Members
Namespace: NUnit.Framework.Api
Assembly: nunit.framework.dll
Syntax
public class DefaultTestAssemblyBuilder : ITestAssemblyBuilder
Constructors
View SourceDefaultTestAssemblyBuilder()
Initializes a new instance of the DefaultTestAssemblyBuilder class.
Declaration
public DefaultTestAssemblyBuilder()
Methods
View SourceBuild(Assembly, IDictionary<string, object>)
Build a suite of tests from a provided assembly
Declaration
public ITest Build(Assembly assembly, IDictionary<string, object> options)
Parameters
Type | Name | Description |
---|---|---|
Assembly | assembly | The assembly from which tests are to be built |
IDictionary<string, object> | options | A dictionary of options to use in building the suite |
Returns
Type | Description |
---|---|
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
Declaration
public ITest Build(string assemblyNameOrPath, IDictionary<string, object> options)
Parameters
Type | Name | Description |
---|---|---|
string | assemblyNameOrPath | The name or the location of the assembly. |
IDictionary<string, object> | options | A dictionary of options to use in building the suite |
Returns
Type | Description |
---|---|
ITest | A TestSuite containing the tests found in the assembly |