Click or drag to resize
Akka.NETIEventFilterApplierExpect Method (Int32, TimeSpan, Action)
Executes action and expects the specified number of events to be logged during the execution. This method fails and throws an exception if more events than expected are logged, or if a timeout occurs. The timeout is taken from the config value "akka.test.filter-leeway", see TestEventFilterLeeway.

Namespace:  Akka.TestKit
Assembly:  Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax
void Expect(
	int expectedCount,
	TimeSpan timeout,
	Action action
)

Parameters

expectedCount
Type: SystemInt32
The expected number of events
timeout
Type: SystemTimeSpan
The time to wait for log events after executing action
action
Type: SystemAction
The action.
See Also