Class PropertyDataSource
Namespace: AutoFixture.Xunit3.Internal
Assembly: AutoFixture.Xunit3.dll
Encapsulates access to a property that provides test data.
public class PropertyDataSource : DataSource, IDataSourceInheritance
object ← DataSource ← PropertyDataSource
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
PropertyDataSource(PropertyInfo)
Creates an instance of type PropertyDataSource.
public PropertyDataSource(PropertyInfo propertyInfo)Parameters
propertyInfo PropertyInfo
Exceptions
Properties
PropertyInfo
Gets the source property.
public PropertyInfo PropertyInfo { 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.