Table of Contents

Interface IRulesUnderTest

Namespace
NRules.Testing
Assembly
NRules.Testing.dll

Represents the rules under test.

public interface IRulesUnderTest

Properties

Rules

Gets the rules under test.

IReadOnlyCollection<RuleInfo> Rules { get; }

Property Value

IReadOnlyCollection<RuleInfo>

Methods

GetRuleInfo(string)

Gets the rule information for the specified rule name.

RuleInfo GetRuleInfo(string ruleName)

Parameters

ruleName string

Name of the rule to look for.

Returns

RuleInfo

Found rule.

GetRuleInfo(Type)

Gets the rule information for the specified rule type.

RuleInfo GetRuleInfo(Type ruleType)

Parameters

ruleType Type

Type of the rule to look for.

Returns

RuleInfo

Found rule.

GetSingle()

Gets the rule information for the single rule under test.

RuleInfo GetSingle()

Returns

RuleInfo

Found rule.