Click or drag to resize
Akka.NETTestKitBase.ExpectMsg<T> Method (T, Nullable<TimeSpan>, String)
Receive one message of the specified type from the test actor and assert that it equals the message. Wait time is bounded by the given duration, if specified; otherwise 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".

Namespace:  Akka.TestKit
Assembly:  Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax
public T ExpectMsg<T>(
	T message,
	Nullable<TimeSpan> timeout = null,
	string hint = null
)

Parameters

message
Type: T
TBD
timeout (Optional)
Type: System.Nullable<TimeSpan>
TBD
hint (Optional)
Type: System.String
TBD

Type Parameters

T
TBD

Return Value

Type: T
TBD
See Also