| TestKitBaseExpectMsgFromT Method (IActorRef, ActionT, NullableTimeSpan, String) |
Receive one message of the specified type from the test actor, verifies that the sender is the specified
and calls the action that performs extra assertions.
Wait time is bounded by the given duration if specified.
If not specified, wait time is bounded by remaining time for execution of the innermost enclosing 'within'
block, if inside a 'within' block; otherwise by the config value
"akka.test.single-expect-default".
Use this variant to implement more complicated or conditional processing.
Namespace:
Akka.TestKit
Assembly:
Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax public T ExpectMsgFrom<T>(
IActorRef sender,
Action<T> assertMessage,
Nullable<TimeSpan> timeout = null,
string hint = null
)
member ExpectMsgFrom :
sender : IActorRef *
assertMessage : Action<'T> *
?timeout : Nullable<TimeSpan> *
?hint : string
(* Defaults:
let _timeout = defaultArg timeout null
let _hint = defaultArg hint null
*)
-> 'T
Parameters
- sender
- Type: Akka.ActorIActorRef
TBD - assertMessage
- Type: SystemActionT
TBD - timeout (Optional)
- Type: SystemNullableTimeSpan
TBD - hint (Optional)
- Type: SystemString
TBD
Type Parameters
- T
- TBD
Return Value
Type:
TTBD
See Also