| IEventFilterApplierExpectOneT Method (TimeSpan, FuncT) |
Executes func and
expects one event to be logged during the execution.
This function fails and throws an exception if more than one event is logged,
or if a timeout occurs.
Namespace:
Akka.TestKit
Assembly:
Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax T ExpectOne<T>(
TimeSpan timeout,
Func<T> func
)
abstract ExpectOne :
timeout : TimeSpan *
func : Func<'T> -> 'T
Parameters
- timeout
- Type: SystemTimeSpan
The time to wait for a log event after executing func - func
- Type: SystemFuncT
The function.
Type Parameters
- T
- The return value of the function
Return Value
Type:
TThe returned value from
func.
See Also