Class Stateful
- Namespace
- Hegel
- Assembly
- Hegel.dll
Stateful testing: drive an object whose RuleAttribute methods are the steps the test may take and whose InvariantAttribute methods must hold between them.
public static class Stateful
- Inheritance
-
Stateful
- Inherited Members
Fields
AnonymousGroup
The group of rules whose Groups are empty.
public const string AnonymousGroup = "<anonymous>"
Field Value
DefaultStepCount
How many steps a run takes unless StepCount says otherwise.
public const int DefaultStepCount = 50
Field Value
Methods
Run(object, TestCase)
Drive machine for DefaultStepCount steps.
public static void Run(object machine, TestCase tc)
Parameters
Run(object, TestCase, StatefulOptions)
Drive machine as options say.
public static void Run(object machine, TestCase tc, StatefulOptions options)
Parameters
machineobjecttcTestCaseoptionsStatefulOptions
Run(object, TestCase, int)
Drive machine for stepCount steps.
public static void Run(object machine, TestCase tc, int stepCount)