Click or drag to resize
Akka.NETTestKitBase Properties

The TestKitBase type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberDefaultConfig
The default TestKit configuration.
Public propertyEventFilter
Filter LogEvent sent to the system's EventStream. In order to be able to filter the log the special logger TestEventListener must be installed using the config
akka.loggers = ["Akka.TestKit.TestEventListener, Akka.TestKit"]
It is installed by default in testkit.
Public propertyStatic memberFullDebugConfig
A full debugging configuration with all log settings enabled.
Public propertyHasMessages
Returns true if messages are available.
Public propertyLastMessage
The last message received by the TestActor.
Public propertyLastSender
The last IActorRef to send a message to the TestActor.
Public propertyLog
The built-in ILoggingAdapter used by Sys.
Public propertyStatic memberNow
The current time.
Public propertyRemaining

Retrieves the time remaining for execution of the innermost enclosing Within block.

Remarks
The returned value is always finite.
Public propertyRemainingOrDefault

Retrieves the time remaining for execution of the innermost enclosing Within block. If missing that, then it returns the properly dilated default for this case from settings (key: "akka.test.single-expect-default").

Remarks
The returned value is always finite.
Public propertySys
The ActorSystem that is recreated and used for each test.
Public propertyTestActor
The default TestActor. The actor can be controlled by sending it special control messages, see TestActorSetIgnore, TestActorWatch, TestActorUnwatch. You can also install an AutoPilot to drive the actor, see SetAutoPilot(AutoPilot). All other messages are forwarded to the queue and can be retrieved with Receive and the ExpectMsg overloads.
Public propertyTestKitSettings
The settings for the testkit.
Top
See Also