Interface IRulesVerification
Verifies recorded rules invocations against expectations.
public interface IRulesVerification
Methods
Verify(Action<IRulesFiringVerification>)
Verifies that the rules under test fired with a set of facts matching the specified expectations.
RuleAssertResult Verify(Action<IRulesFiringVerification> action)
Parameters
action
Action<IRulesFiringVerification>Expectations configuration action.
Returns
- RuleAssertResult
Outcome of validation of recorded rule invocations against the provided expectations.
Remarks
Recorded rule invocations are compared to expectations according to the expected number of invocations for each rule, specified using Times.
VerifySequence(Action<IRuleSequenceFiringVerification>)
Verifies that the rules under test fired with a set of facts matching the specified expectations.
RuleAssertResult VerifySequence(Action<IRuleSequenceFiringVerification> action)
Parameters
action
Action<IRuleSequenceFiringVerification>Expectations configuration action.
Returns
- RuleAssertResult
Outcome of validation of recorded rule invocations against the provided expectations.
Remarks
Recorded rule invocations are compared to expectations one by one.