Table of Contents

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

string

DefaultStepCount

How many steps a run takes unless StepCount says otherwise.

public const int DefaultStepCount = 50

Field Value

int

Methods

Run(object, TestCase)

Drive machine for DefaultStepCount steps.

public static void Run(object machine, TestCase tc)

Parameters

machine object
tc TestCase

Run(object, TestCase, StatefulOptions)

Drive machine as options say.

public static void Run(object machine, TestCase tc, StatefulOptions options)

Parameters

machine object
tc TestCase
options StatefulOptions

Run(object, TestCase, int)

Drive machine for stepCount steps.

public static void Run(object machine, TestCase tc, int stepCount)

Parameters

machine object
tc TestCase
stepCount int