Class CombiningStrategyAttribute
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
ICombiningStrategyCombining 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
objectCombining 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
TestThe 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
MethodInfoThe MethodInfo for which tests are to be constructed.
suite
TestThe suite to which the tests will be added.
Returns
- IEnumerable<TestMethod>
One or more TestMethods