Table of Contents

Class CombinatorialValuesAttribute

Namespace
Xunit
Assembly
Xunit.Combinatorial.dll

Specifies which values for this parameter should be used for running the test method.

[AttributeUsage(AttributeTargets.Parameter)]
public class CombinatorialValuesAttribute : Attribute, _Attribute, ICombinatorialValuesProvider
Inheritance
CombinatorialValuesAttribute
Implements
Inherited Members

Constructors

CombinatorialValuesAttribute(params object?[]?)

Initializes a new instance of the CombinatorialValuesAttribute class.

public CombinatorialValuesAttribute(params object?[]? values)

Parameters

values object[]

The values to pass to this parameter.

Methods

GetValues(ParameterInfo)

Gets the values that should be passed to this parameter on the test method.

public object?[] GetValues(ParameterInfo parameter)

Parameters

parameter ParameterInfo

The parameter to get values for.

Returns

object[]

An array of values.