Class AutoDataProvider
Namespace: AutoFixture.NUnit2.Addins.Builders
Assembly: AutoFixture.NUnit2.dll
AutoTestCaseProvider provides data for methods annotated with the AutoTestCaseAttribute.
public class AutoDataProvider : ITestCaseProvider2, ITestCaseProviderInheritance
Implements
ITestCaseProvider2, ITestCaseProvider
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
AutoDataProvider()
public AutoDataProvider()Methods
GetTestCasesFor(MethodInfo)
Return an IEnumerable providing test cases for use in running a parameterized test.
public IEnumerable GetTestCasesFor(MethodInfo method)Parameters
method MethodInfo
Returns
GetTestCasesFor(MethodInfo, Test)
Return an IEnumerable providing test cases for use in running a parameterized test.
public IEnumerable GetTestCasesFor(MethodInfo method, Test suite)Parameters
method MethodInfo
suite Test
Returns
HasTestCasesFor(MethodInfo)
Determine whether any test cases are available for a parameterized method.
public bool HasTestCasesFor(MethodInfo method)Parameters
method MethodInfo
A MethodInfo representing a parameterized test.
Returns
True if any cases are available, otherwise false.
HasTestCasesFor(MethodInfo, Test)
Determine whether any test cases are available for a parameterized method.
public bool HasTestCasesFor(MethodInfo method, Test suite)Parameters
method MethodInfo
A MethodInfo representing a parameterized test.
suite Test
A Suite representing a NUnit TestSuite.
Returns
True if any cases are available, otherwise false.