Exemple #1
0
        public void EchoActorTest()
        {
            var launcher = new TestLauncherActor();

            launcher.SendAction(() =>
            {
                var actor = new EchoTest();
                new EchoActor(actor, "Test Echo");
                IFuture <string> future = new Future <string>();
                actor.SendMessage(future);
                Assert.AreEqual("Test Echo", future.ResultAsync().Result);
                launcher.Finish();
            });
            Assert.IsTrue(launcher.Wait());
        }