Class ClassDataSource

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

Encapsulates the access to a test data source type.

public class ClassDataSource : DataSource, IDataSource

Inheritance

objectDataSourceClassDataSource

Implements

IDataSource

Inherited Members

DataSource.GetData(), DataSource.GetData(MethodInfo), object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

ClassDataSource(Type, params object[])

Creates an instance of type ClassDataSource.

public ClassDataSource(Type type, params object[] parameters)

Parameters

type Type

The test data source type.

parameters object[]

Constructor arguments for the source type.

Exceptions

ArgumentNullException

Thrown when arguments are null.

Properties

Parameters

Gets the constructor parameters for test data source type.

public IReadOnlyList<object> Parameters { get; }

Property Value

IReadOnlyList<object>

Type

Gets the test data source type.

public Type Type { get; }

Property Value

Type

Methods

GetData()

Gets the test data provided by the source.

protected override IEnumerable<object[]> GetData()

Returns

IEnumerable<object[]>

Returns a sequence of argument collections.