Struct RuleInfo
Information about a rule under test.
public struct RuleInfo
- Inherited Members
Constructors
RuleInfo(IRuleDefinition)
Initializes a new instance of the RuleInfo class.
public RuleInfo(IRuleDefinition definition)
Parameters
definition
IRuleDefinitionRule's definition in a canonical form.
RuleInfo(Type, object, IRuleDefinition)
Initializes a new instance of the RuleInfo class.
public RuleInfo(Type type, object instance, IRuleDefinition definition)
Parameters
type
TypeCLR type that contains rule's definition using Fluent DSL.
instance
objectInstance of the rule's type.
definition
IRuleDefinitionRule's definition in a canonical form.
Properties
Definition
Rule's definition.
public readonly IRuleDefinition Definition { get; }
Property Value
Instance
Instance of the Rule class that contains the rule's definition using Fluent DSL. This is null if the rule is not defined using Fluent DSL.
public readonly object? Instance { get; }
Property Value
Type
CLR type that contains rule's definition using Fluent DSL. This is null if the rule is not defined using Fluent DSL.
public readonly Type? Type { get; }