Click or drag to resize
Akka.NETTestKitBaseExpectMsgAllOfT Method (T)
Receive a number of messages from the test actor matching the given number of objects and assert that for each given object one is received which equals it and vice versa. This construct is useful when the order in which the objects are received is not fixed. Wait time is bounded by RemainingOrDefault as duration, with an assertion exception being thrown in case of timeout.
dispatcher.Tell(SomeWork1())
dispatcher.Tell(SomeWork2())
ExpectMsgAllOf(TimeSpan.FromSeconds(1), Result1(), Result2())

Namespace:  Akka.TestKit
Assembly:  Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public IReadOnlyCollection<T> ExpectMsgAllOf<T>(
	params T[] messages
)

Parameters

messages
Type: T
The messages.

Type Parameters

T
The type of the messages

Return Value

Type: IReadOnlyCollectionT
The received messages in received order
See Also