Class CombinatorialRangeAttribute
- Namespace
- Xunit
- Assembly
- Xunit.Combinatorial.dll
Specifies which range of values for this parameter should be used for running the test method.
[AttributeUsage(AttributeTargets.Parameter)]
public class CombinatorialRangeAttribute : Attribute, _Attribute
- Inheritance
-
CombinatorialRangeAttribute
- Implements
- Inherited Members
Constructors
CombinatorialRangeAttribute(int, int)
Initializes a new instance of the CombinatorialRangeAttribute class.
public CombinatorialRangeAttribute(int from, int count)
Parameters
from
intThe value at the beginning of the range.
count
intThe quantity of consecutive integer values to include. Cannot be less than 1, which would conceptually result in zero test cases.
CombinatorialRangeAttribute(int, int, int)
Initializes a new instance of the CombinatorialRangeAttribute class.
public CombinatorialRangeAttribute(int from, int to, int step)
Parameters
from
intThe value at the beginning of the range.
to
intThe value at the end of the range. Cannot be less than "from" parameter. When "to" and "from" are equal, CombinatorialValues is more appropriate.
step
intThe number of integers to step for each value in result. Cannot be less than one. Stepping zero or backwards is not useful. Stepping over "to" does not add another value to the range.
CombinatorialRangeAttribute(uint, uint)
Initializes a new instance of the CombinatorialRangeAttribute class.
public CombinatorialRangeAttribute(uint from, uint count)
Parameters
from
uintThe value at the beginning of the range.
count
uintThe quantity of consecutive integer values to include. Cannot be less than 1, which would conceptually result in zero test cases.
CombinatorialRangeAttribute(uint, uint, uint)
Initializes a new instance of the CombinatorialRangeAttribute class.
public CombinatorialRangeAttribute(uint from, uint to, uint step)
Parameters
from
uintThe value at the beginning of the range.
to
uintThe value at the end of the range. Cannot be less than "from" parameter. When "to" and "from" are equal, CombinatorialValues is more appropriate.
step
uintThe number of unsigned integers to step for each value in result. Cannot be less than one. Stepping zero is not useful. Stepping over "to" does not add another value to the range.
Properties
Values
Gets the values that should be passed to this parameter on the test method.
public object[] Values { get; }
Property Value
- object[]
An array of values.