 | IEventFilterApplierExpectOne Method (TimeSpan, Action) |
Executes action and
expects one event to be logged during the execution.
This method 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.42 (1.2.3.42)
Syntaxvoid ExpectOne(
TimeSpan timeout,
Action action
)
abstract ExpectOne :
timeout : TimeSpan *
action : Action -> unit
Parameters
- timeout
- Type: SystemTimeSpan
The time to wait for a log event after executing action - action
- Type: SystemAction
The action.
See Also