C# Класс Akka.TestKit.NUnit.TestKit

TestKit for NUnit.
Наследование: TestKitBase, IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
InitializeActorSystemOnSetUp ( ) : void
ShutDownActorSystemOnTearDown ( ) : void

Описание методов

AfterAll() защищенный Метод

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
Результат void

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

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.
Результат void

TestKit() публичный Метод

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.
Результат System

TestKit() публичный Метод

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"
Результат System

TestKit() публичный Метод

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.
Результат System