Class FixedNameTestMethodBuilder
Namespace: AutoFixture.NUnit3
Assembly: AutoFixture.NUnit3.dll
Builder that generates TestMethod with fixed names.
This might be needed by some test runners to correctly identify tests between the discovery and execution
(e.g. Nunit test adaptor for Visual Studio, NCrunch).
public class FixedNameTestMethodBuilder : ITestMethodBuilderInheritance
object ← FixedNameTestMethodBuilder
Implements
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
FixedNameTestMethodBuilder()
public FixedNameTestMethodBuilder()Methods
Build(IMethodInfo, Test, IEnumerable<object>, int)
Builds a TestCaseParameters from a method and the argument values.
public virtual 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