Interface ITestMethodBuilder

Namespace: AutoFixture.NUnit4
Assembly: AutoFixture.NUnit4.dll

Utility used to create a TestMethod instance.

public interface ITestMethodBuilder

Methods

Build(IMethodInfo, Test, IEnumerable<object>, int)

Builds a TestCaseParameters from a method and the argument values.

TestMethod Build(IMethodInfo method, Test suite, IEnumerable<object> parameterValues, int autoDataStartIndex)

Parameters

method IMethodInfo

The IMethodInfo for which tests are to be constructed.

suite Test

The suite to which the tests will be added.

parameterValues IEnumerable<object>

The argument values generated for the test case.

autoDataStartIndex int

Index at which the automatically generated values start.

Returns

TestMethod