IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Marks a test to use a particular CombiningStrategy to join any parameter data provided. Since this is the default, the attribute is optional. More...
Public Member Functions | |
IEnumerable< TestMethod > | BuildFrom (IMethodInfo method, Test suite) |
Construct one or more TestMethods from a given MethodInfo, using available parameter data. More... | |
void | ApplyToTest (Test test) |
Modify the test by adding the name of the combining strategy to the properties. More... | |
![]() | |
NUnitAttribute () | |
Default constructor More... | |
Protected Member Functions | |
CombiningStrategyAttribute (ICombiningStrategy strategy, IParameterDataProvider provider) | |
Construct a CombiningStrategyAttribute incorporating an ICombiningStrategy and an IParamterDataProvider. More... | |
CombiningStrategyAttribute (object strategy, object provider) | |
Construct a CombiningStrategyAttribute incorporating an object that implements ICombiningStrategy and an IParameterDataProvider. This constructor is provided for CLS compliance. More... | |
Private Attributes | |
NUnitTestCaseBuilder | _builder = new NUnitTestCaseBuilder() |
ICombiningStrategy | _strategy |
IParameterDataProvider | _dataProvider |
Marks a test to use a particular CombiningStrategy to join any parameter data provided. Since this is the default, the attribute is optional.
|
inlineprotected |
Construct a CombiningStrategyAttribute incorporating an ICombiningStrategy and an IParamterDataProvider.
strategy | Combining strategy to be used in combining data |
provider | An IParameterDataProvider to supply data |
|
inlineprotected |
Construct a CombiningStrategyAttribute incorporating an object that implements ICombiningStrategy and an IParameterDataProvider. This constructor is provided for CLS compliance.
strategy | Combining strategy to be used in combining data |
provider | An IParameterDataProvider to supply data |
|
inline |
Construct one or more TestMethods from a given MethodInfo, using available parameter data.
method | The MethodInfo for which tests are to be constructed. |
suite | The suite to which the tests will be added. |
Implements NUnit.Framework.Interfaces.ITestBuilder.
References NUnit.Framework.Internal.Builders.NUnitTestCaseBuilder.BuildTestMethod(), NUnit.Framework.Interfaces.IMethodInfo.ContainsGenericParameters, NUnit.Framework.Interfaces.IParameterDataProvider.GetDataFor(), NUnit.Framework.Interfaces.IMethodInfo.GetGenericArguments(), NUnit.Framework.Interfaces.IMethodInfo.GetParameters(), NUnit.Framework.Interfaces.ICombiningStrategy.GetTestCases(), and NUnit.Framework.Internal.PropertyNames.SkipReason.
Referenced by NUnit.Framework.Attributes.TestMethodBuilderTests.CombinatorialAttribute_NoArgs_NoCases(), NUnit.Framework.Attributes.TestMethodBuilderTests.CombinatorialAttribute_WithArgs_Runnable(), NUnit.Framework.Attributes.TestMethodBuilderTests.PairwiseAttribute_NoArgs_NoCases(), NUnit.Framework.Attributes.TestMethodBuilderTests.PairwiseAttribute_WithArgs_Runnable(), NUnit.Framework.Attributes.TestMethodBuilderTests.SequentialAttribute_NoArgs_NoCases(), NUnit.Framework.Attributes.TestMethodBuilderTests.SequentialAttribute_WithArgs_Runnable(), NUnit.Framework.Attributes.TestMethodBuilderTests.TheoryAttribute_NoArgs_NoCases(), and NUnit.Framework.Attributes.TestMethodBuilderTests.TheoryAttribute_WithArgs_Runnable().
|
inline |
Modify the test by adding the name of the combining strategy to the properties.
test | The test to modify |
Implements NUnit.Framework.Interfaces.IApplyToTest.
References NUnit.Framework.Internal.PropertyNames.JoinType, NUnit.Framework.Internal.Test.Properties, and NUnit.Framework.Interfaces.IPropertyBag.Set().
Referenced by NUnit.Framework.Attributes.ApplyToTestTests.CombinatorialAttributeSetsJoinType(), NUnit.Framework.Attributes.ApplyToTestTests.CombinatorialAttributeSetsJoinTypeOnNonRunnableTest(), NUnit.Framework.Attributes.ApplyToTestTests.PairwiseAttributeSetsJoinType(), NUnit.Framework.Attributes.ApplyToTestTests.PairwiseAttributeSetsJoinTypeOnNonRunnableTest(), NUnit.Framework.Attributes.ApplyToTestTests.SequentialAttributeSetsJoinType(), and NUnit.Framework.Attributes.ApplyToTestTests.SequentialAttributeSetsJoinTypeOnNonRunnableTest().
|
private |
|
private |
|
private |