Class ClassDataSource
Namespace: AutoFixture.Xunit3.Internal
Assembly: AutoFixture.Xunit3.dll
Encapsulates the access to a test data source type.
public class ClassDataSource : DataSource, IDataSourceInheritance
object ← DataSource ← ClassDataSource
Implements
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
Thrown when arguments are null.
Properties
Parameters
Gets the constructor parameters for test data source type.
public IReadOnlyList<object> Parameters { get; }Property Value
Type
Gets the test data source type.
public Type Type { get; }Property Value
Methods
GetData()
Gets the test data provided by the source.
protected override IEnumerable<object[]> GetData()Returns
Returns a sequence of argument collections.