<PackageReference Include="NUnit" Version="3.11.0" />

ValueGenerator

abstract class ValueGenerator
public abstract class Step

Encapsulates the ability to increment a value by an amount which may be of a different type.

protected ValueGenerator()

public static ValueGenerator Create(Type valueType)

public static ValueGenerator<T> Create<T>()

public abstract Step CreateStep(object value)

Creates a Step from the specified value if the current instance is able to use it to increment the on values which it operates. If the creation fails, NotSupportedException is thrown.

public abstract IEnumerable GenerateRange(object start, object end, Step step)

public abstract bool TryCreateStep(object value, out Step step)

Creates a Step from the specified value if the current instance is able to use it to increment values on which it operates. A return value indicates whether the creation succeeded.