Class InlineDataSource
Namespace: AutoFixture.Xunit3.Internal
Assembly: AutoFixture.Xunit3.dll
Provides test data from a predefined collection of values.
public sealed class InlineDataSource : IDataSourceInheritance
Implements
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
Thrown when the values collection is null.
Properties
Values
The collection of inline values.
public IReadOnlyList<object> Values { get; }Property Value
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
Returns a sequence of argument collections.