C# Class 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"); } }
Inheritance: TestKitBase
Show file Open project: akkadotnet/Akka.TestKit.VsTest

Public Methods

Method Description
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.

Method Details

TestKit() public method

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.
return Akka.Actor

TestKit() public method

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"
return Akka.Actor

TestKit() public method

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.
return Akka.Actor