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

TestKit for Visual Studio Unit Testing Framework. You should always call Shutdown from your cleanup method, in order to not leak memory. Example: [TestClass] public class MyTests : TestKit { [TestCleanup] public void Cleanup() { Shutdown(); } [TestMethod] public void Expect_a_message() { TestActor.Tell("Test"); ExpectMsg("Test"); } }
Наследование: TestKitBase
Показать файл Открыть проект

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

Метод Описание
TestKit ( ActorSystem system = null ) : Akka.Actor

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

TestKit ( Config config, string actorSystemName = null ) : Akka.Actor

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

TestKit ( string config ) : Akka.Actor

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

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

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

Create a new instance of the TestKit for xUnit class. If no system is passed in, a new system with DefaultConfig will be created.
public TestKit ( ActorSystem system = null ) : Akka.Actor
system ActorSystem Optional: The actor system.
Результат Akka.Actor

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

Create a new instance of the TestKit for xUnit class. A new system with the specified configuration will be created.
public TestKit ( Config config, string actorSystemName = null ) : Akka.Actor
config Akka.Configuration.Config The configuration to use for the system.
actorSystemName string Optional: the name of the system. Default: "test"
Результат Akka.Actor

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

Create a new instance of the TestKit for xUnit class. A new system with the specified configuration will be created.
public TestKit ( string config ) : Akka.Actor
config string The configuration to use for the system.
Результат Akka.Actor