Table of Contents

Class CombiningStrategyAttribute

Namespace
NUnit.Framework
Assembly
nunit.framework.dll

Marks a test to use a particular CombiningStrategy to join any parameter data provided. Since this is the default, the attribute is optional.

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public abstract class CombiningStrategyAttribute : TestCaseBuilderAttribute, ITestBuilder, IApplyToTest
Inheritance
CombiningStrategyAttribute
Implements
Derived
Inherited Members

Constructors

CombiningStrategyAttribute(ICombiningStrategy)

Construct a CombiningStrategyAttribute incorporating an object that implements ICombiningStrategy.

protected CombiningStrategyAttribute(ICombiningStrategy strategy)

Parameters

strategy ICombiningStrategy

Combining strategy to be used

CombiningStrategyAttribute(object)

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

protected CombiningStrategyAttribute(object strategy)

Parameters

strategy object

Combining strategy to be used

Methods

ApplyToTest(Test)

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

public void ApplyToTest(Test test)

Parameters

test Test

The test to modify

BuildFrom(MethodInfo, Test)

Construct one or more TestMethods from a given MethodInfo, using available parameter data.

public IEnumerable<TestMethod> BuildFrom(MethodInfo method, Test suite)

Parameters

method MethodInfo

The MethodInfo for which tests are to be constructed.

suite Test

The suite to which the tests will be added.

Returns

IEnumerable<TestMethod>

One or more TestMethods