Click or drag to resize
Akka.NETIEventFilterApplierExpectT Method (Int32, FuncT)
Executes func and expects the specified number of events to be logged during the execution. This function 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.42 (1.2.3.42)
Syntax
T Expect<T>(
	int expectedCount,
	Func<T> func
)

Parameters

expectedCount
Type: SystemInt32
The expected number of events
func
Type: SystemFuncT
The function.

Type Parameters

T
The return value of the function

Return Value

Type: T
The returned value from func.
See Also