Class FromFactoryAttribute
- Namespace
- Conjecture.Core
- Assembly
- Conjecture.Core.dll
Specifies that a property-based test parameter should be generated by invoking a named static factory method on the test class.
[AttributeUsage(AttributeTargets.Parameter)]
public sealed class FromFactoryAttribute : Attribute
- Inheritance
-
FromFactoryAttribute
- Inherited Members
Constructors
FromFactoryAttribute(string)
Specifies that a property-based test parameter should be generated by invoking a named static factory method on the test class.
public FromFactoryAttribute(string methodName)
Parameters
methodNamestringThe name of a static method on the test class that returns
Strategy<T>.
Properties
MethodName
The name of the static factory method to invoke.
public string MethodName { get; }