C# Class Akka.TestKit.NUnit.TestKit

TestKit for NUnit.
Inheritance: TestKitBase, IDisposable
Datei anzeigen Open project: akkadotnet/Akka.TestKit.Nunit

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

TestKit ( ActorSystem system = null ) : System

Create a new instance of the TestKit for NUnit class. If no system is passed in, a new system with DefaultConfig will be created.

TestKit ( Config config, string actorSystemName = null ) : System

Create a new instance of the TestKit for NUnit class. A new system with the specified configuration will be created.

TestKit ( string config ) : System

Create a new instance of the TestKit for NUnit class. A new system with the specified configuration will be created.

Protected Methods

Method Description
AfterAll ( ) : void

This method is called when a test ends. If you override this, make sure you either call base.AfterTest() or TestKitBase.Shutdown to shut down the system. Otherwise you'll leak memory.

Dispose ( bool disposing ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Private Methods

Method Description
InitializeActorSystemOnSetUp ( ) : void
ShutDownActorSystemOnTearDown ( ) : void

Method Details

AfterAll() protected method

This method is called when a test ends. If you override this, make sure you either call base.AfterTest() or TestKitBase.Shutdown to shut down the system. Otherwise you'll leak memory.
protected AfterAll ( ) : void
return void

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
protected Dispose ( bool disposing ) : void
disposing bool if set to true the method has been called directly or indirectly by a /// user's code. Managed and unmanaged resources will be disposed.
/// if set to false the method has been called by the runtime from inside the finalizer and only /// unmanaged resources can be disposed.
return void

TestKit() public method

Create a new instance of the TestKit for NUnit class. If no system is passed in, a new system with DefaultConfig will be created.
public TestKit ( ActorSystem system = null ) : System
system ActorSystem Optional: The actor system.
return System

TestKit() public method

Create a new instance of the TestKit for NUnit class. A new system with the specified configuration will be created.
public TestKit ( Config config, string actorSystemName = null ) : System
config Akka.Configuration.Config The configuration to use for the system.
actorSystemName string Optional: the name of the system. Default: "test"
return System

TestKit() public method

Create a new instance of the TestKit for NUnit class. A new system with the specified configuration will be created.
public TestKit ( string config ) : System
config string The configuration to use for the system.
return System