Table of Contents

Struct Times

Namespace
NRules.Testing
Assembly
NRules.Testing.dll

Fluent builder for specifying the number of rule invocations in a rule firing expectation.

public struct Times
Inherited Members

Properties

Never

Rule should never fire.

public static Times Never { get; }

Property Value

Times

Once

Rule should fire exactly once.

public static Times Once { get; }

Property Value

Times

Twice

Rule should fire exactly twice.

public static Times Twice { get; }

Property Value

Times

Methods

Exactly(int)

Rule should fire exactly the specified number of times.

public static Times Exactly(int value)

Parameters

value int

Number of times the rule is expected to fire.

Returns

Times