Search Results for

    Show / Hide Table of Contents

    Class DefaultTestAssemblyBuilder

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

    Inheritance
    object
    DefaultTestAssemblyBuilder
    Implements
    ITestAssemblyBuilder
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: NUnit.Framework.Api
    Assembly: nunit.framework.dll
    Syntax
    public class DefaultTestAssemblyBuilder : ITestAssemblyBuilder

    Constructors

    View Source

    DefaultTestAssemblyBuilder()

    Initializes a new instance of the DefaultTestAssemblyBuilder class.

    Declaration
    public DefaultTestAssemblyBuilder()

    Methods

    View Source

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

    View Source

    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

    Implements

    ITestAssemblyBuilder
    • View Source
    In this article
    Back to top Generated by DocFX | Copyright (c) 2018- The NUnit Project - Licensed under CC BY-NC-SA 4.0