Class PropertyDataSource

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

Encapsulates access to a property that provides test data.

public class PropertyDataSource : DataSource, IDataSource

Inheritance

objectDataSourcePropertyDataSource

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

PropertyDataSource(PropertyInfo)

Creates an instance of type PropertyDataSource.

public PropertyDataSource(PropertyInfo propertyInfo)

Parameters

propertyInfo PropertyInfo

Exceptions

ArgumentNullException

Properties

PropertyInfo

Gets the source property.

public PropertyInfo PropertyInfo { get; }

Property Value

PropertyInfo

Methods

GetData()

Gets the test data provided by the source.

protected override IEnumerable<object[]> GetData()

Returns

IEnumerable<object[]>

Returns a sequence of argument collections.