Table of Contents

Class RulesTestHarness

Namespace
NRules.Testing
Assembly
NRules.Testing.dll

Rules under test compiled into a rules engine session along with the means to verify rules firing.

public class RulesTestHarness
Inheritance
RulesTestHarness
Inherited Members

Constructors

RulesTestHarness(IRulesTestSetup)

Initializes a new instance of the RulesTestHarness class.

public RulesTestHarness(IRulesTestSetup setup)

Parameters

setup IRulesTestSetup

Rules test setup information.

Properties

Recorder

Gets the rule invocation recorder to control and inspect rules firing.

public IRuleInvocationRecorder Recorder { get; }

Property Value

IRuleInvocationRecorder

RuleSet

Gets the rules under test.

public IRulesUnderTest RuleSet { get; }

Property Value

IRulesUnderTest

Session

Gets the current rules engine session.

public ISession Session { get; }

Property Value

ISession

Remarks

Lazily created

Methods

GetRulesVerification()

Creates a rules verification builder to check rules firing expectations.

public IRulesVerification GetRulesVerification()

Returns

IRulesVerification

Instance of the verification builder.