Akka.TestKit Namespace

Classes


  Class Description
Public class CallingThreadDispatcher
Public class FSMSpecHelpers
Public class ImplicitSenderSpec
Public class TestActorRef
Public class TestActorRef..::..InternalGetActor
Public class TestActorRef<(Of <(<'T>)>)>
This special ActorRef is exclusively for use during unit testing in a single-threaded environment. Therefore, it overrides the dispatcher to CallingThreadDispatcher and sets the receiveTimeout to None. Otherwise, it acts just like a normal ActorRef. You may retrieve a reference to the underlying actor to test internal logic.
Public class TestKitExtension
A extension to be used together with the TestKit.

Examples


To get the settings:
C#
var testKitSettings = TestKitExtension.For(system);
Public class TestKitSettings
Contains settings to be used when writing tests with TestKit.
Public class TestLatch
Countdown latch wrapper for use in testing. It always uses a timeout when waiting and timeouts are specified as durations. There's a default timeout of 5 seconds and the default count is 1. Timeouts will always throw an exception.