Table of Contents

Class FromMethodAttribute

Namespace
Conjecture.Core
Assembly
Conjecture.Core.dll

Specifies that a property-based test parameter should be generated by invoking a named static method on the test class.

[AttributeUsage(AttributeTargets.Parameter)]
public sealed class FromMethodAttribute : Attribute
Inheritance
FromMethodAttribute
Inherited Members

Constructors

FromMethodAttribute(string)

Specifies that a property-based test parameter should be generated by invoking a named static method on the test class.

public FromMethodAttribute(string methodName)

Parameters

methodName string

The name of a static method on the test class that returns Strategy<T>.

Properties

MethodName

The name of the static method to invoke.

public string MethodName { get; }

Property Value

string