Class InlineDataSource

Namespace: AutoFixture.Xunit3.Internal
Assembly: AutoFixture.Xunit3.dll

Provides test data from a predefined collection of values.

public sealed class InlineDataSource : IDataSource

Inheritance

objectInlineDataSource

Implements

IDataSource

Inherited Members

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

InlineDataSource(object[])

Creates an instance of type InlineDataSource.

public InlineDataSource(object[] values)

Parameters

values object[]

The collection of inline values.

Exceptions

ArgumentNullException

Thrown when the values collection is null.

Properties

Values

The collection of inline values.

public IReadOnlyList<object> Values { get; }

Property Value

IReadOnlyList<object>

Methods

GetData(MethodInfo)

Returns the test data provided by the source.

public IEnumerable<object[]> GetData(MethodInfo method)

Parameters

method MethodInfo

The target method for which to provide the arguments.

Returns

IEnumerable<object[]>

Returns a sequence of argument collections.