Class RuleAttribute
- Namespace
- Hegel
- Assembly
- Hegel.dll
Marks a method of a state machine as a rule: a step the test may take. It takes one TestCase parameter.
[AttributeUsage(AttributeTargets.Method, Inherited = false)]
public sealed class RuleAttribute : Attribute
- Inheritance
-
RuleAttribute
- Inherited Members
Properties
Groups
The concurrency groups the rule belongs to. A concurrent round runs the rules of one group, so rules sharing a group may overlap and rules with no group in common never do; a rule in several groups runs in the rounds of each. Empty, the default, is the AnonymousGroup.
public string[] Groups { get; init; }
Property Value
- string[]
Weight
How often the rule is chosen relative to the others. Positive, 1 by default.
public double Weight { get; init; }