C# Class NUnit.Framework.CombiningStrategyAttribute

Inheritance: NUnit.Framework.NUnitAttribute, ITestBuilder, IApplyToTest
Mostra file Open project: nunit/nunit

Public Methods

Method Description
ApplyToTest ( System.Test test ) : void

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

BuildFrom ( IMethodInfo method, System.Test suite ) : IEnumerable

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

Protected Methods

Method Description
CombiningStrategyAttribute ( ICombiningStrategy strategy, IParameterDataProvider provider ) : System

Construct a CombiningStrategyAttribute incorporating an ICombiningStrategy and an IParameterDataProvider.

CombiningStrategyAttribute ( object strategy, object provider ) : System

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

Method Details

ApplyToTest() public method

Modify the test by adding the name of the combining strategy to the properties.
public ApplyToTest ( System.Test test ) : void
test System.Test The test to modify
return void

BuildFrom() public method

Construct one or more TestMethods from a given MethodInfo, using available parameter data.
public BuildFrom ( IMethodInfo method, System.Test suite ) : IEnumerable
method IMethodInfo The MethodInfo for which tests are to be constructed.
suite System.Test The suite to which the tests will be added.
return IEnumerable

CombiningStrategyAttribute() protected method

Construct a CombiningStrategyAttribute incorporating an ICombiningStrategy and an IParameterDataProvider.
protected CombiningStrategyAttribute ( ICombiningStrategy strategy, IParameterDataProvider provider ) : System
strategy ICombiningStrategy Combining strategy to be used in combining data
provider IParameterDataProvider An IParameterDataProvider to supply data
return System

CombiningStrategyAttribute() protected method

Construct a CombiningStrategyAttribute incorporating an object that implements ICombiningStrategy and an IParameterDataProvider. This constructor is provided for CLS compliance.
protected CombiningStrategyAttribute ( object strategy, object provider ) : System
strategy object Combining strategy to be used in combining data
provider object An IParameterDataProvider to supply data
return System