Search Results for

    Show / Hide Table of Contents

    Class CombiningStrategyAttribute

    Marks a test as using a particular CombiningStrategy to join any supplied parameter data. Since this is the default, the attribute is optional.

    Inheritance
    object
    Attribute
    NUnitAttribute
    CombiningStrategyAttribute
    CombinatorialAttribute
    PairwiseAttribute
    SequentialAttribute
    TheoryAttribute
    Implements
    ITestBuilder
    IApplyToTest
    Inherited Members
    Attribute.GetCustomAttributes(MemberInfo, Type)
    Attribute.GetCustomAttributes(MemberInfo, Type, bool)
    Attribute.GetCustomAttributes(MemberInfo)
    Attribute.GetCustomAttributes(MemberInfo, bool)
    Attribute.IsDefined(MemberInfo, Type)
    Attribute.IsDefined(MemberInfo, Type, bool)
    Attribute.GetCustomAttribute(MemberInfo, Type)
    Attribute.GetCustomAttribute(MemberInfo, Type, bool)
    Attribute.GetCustomAttributes(ParameterInfo)
    Attribute.GetCustomAttributes(ParameterInfo, Type)
    Attribute.GetCustomAttributes(ParameterInfo, Type, bool)
    Attribute.GetCustomAttributes(ParameterInfo, bool)
    Attribute.IsDefined(ParameterInfo, Type)
    Attribute.IsDefined(ParameterInfo, Type, bool)
    Attribute.GetCustomAttribute(ParameterInfo, Type)
    Attribute.GetCustomAttribute(ParameterInfo, Type, bool)
    Attribute.GetCustomAttributes(Module, Type)
    Attribute.GetCustomAttributes(Module)
    Attribute.GetCustomAttributes(Module, bool)
    Attribute.GetCustomAttributes(Module, Type, bool)
    Attribute.IsDefined(Module, Type)
    Attribute.IsDefined(Module, Type, bool)
    Attribute.GetCustomAttribute(Module, Type)
    Attribute.GetCustomAttribute(Module, Type, bool)
    Attribute.GetCustomAttributes(Assembly, Type)
    Attribute.GetCustomAttributes(Assembly, Type, bool)
    Attribute.GetCustomAttributes(Assembly)
    Attribute.GetCustomAttributes(Assembly, bool)
    Attribute.IsDefined(Assembly, Type)
    Attribute.IsDefined(Assembly, Type, bool)
    Attribute.GetCustomAttribute(Assembly, Type)
    Attribute.GetCustomAttribute(Assembly, Type, bool)
    Attribute.Equals(object)
    Attribute.GetHashCode()
    Attribute.Match(object)
    Attribute.IsDefaultAttribute()
    Attribute.TypeId
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: NUnit.Framework
    Assembly: nunit.framework.dll
    Syntax
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
    public abstract class CombiningStrategyAttribute : NUnitAttribute, ITestBuilder, IApplyToTest

    Constructors

    View Source

    CombiningStrategyAttribute(ICombiningStrategy, IParameterDataProvider)

    Construct a CombiningStrategyAttribute incorporating an ICombiningStrategy and an IParameterDataProvider.

    Declaration
    protected CombiningStrategyAttribute(ICombiningStrategy strategy, IParameterDataProvider provider)
    Parameters
    Type Name Description
    ICombiningStrategy strategy

    Combining strategy to be used in combining data

    IParameterDataProvider provider

    An IParameterDataProvider to supply data

    View Source

    CombiningStrategyAttribute(object, object)

    Construct a CombiningStrategyAttribute incorporating an object that implements ICombiningStrategy and an IParameterDataProvider. This constructor is provided for CLS compliance.

    Declaration
    protected CombiningStrategyAttribute(object strategy, object provider)
    Parameters
    Type Name Description
    object strategy

    Combining strategy to be used in combining data

    object provider

    An IParameterDataProvider to supply data

    Methods

    View Source

    ApplyToTest(Test)

    Modify the test by adding the name of the combining strategy to the properties.

    Declaration
    public void ApplyToTest(Test test)
    Parameters
    Type Name Description
    Test test

    The test to modify

    View Source

    BuildFrom(IMethodInfo, Test?)

    Builds any number of tests from the specified method and context.

    Declaration
    public IEnumerable<TestMethod> BuildFrom(IMethodInfo method, Test? suite)
    Parameters
    Type Name Description
    IMethodInfo method

    The MethodInfo for which tests are to be constructed.

    Test suite

    The suite to which the tests will be added.

    Returns
    Type Description
    IEnumerable<TestMethod>

    Implements

    ITestBuilder
    IApplyToTest
    • 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