public void SupervisedTest() { TestLauncherActor.Test(() => { var supervisor = new SupervisorActor(); ISupervisedActor supervised = new SupervisedActor(); supervisor.SendMessage(SupervisorAction.Register, supervised); supervisor.SendMessage(SupervisorAction.Kill, supervised); supervisor.SendMessage(SupervisorAction.Respawn, supervised); }); }
public void SupervisedTest() { fLauncher.SendAction(() => { var supervisor = new SupervisorActor(); ISupervisedActor supervised = new SupervisedActor(); supervisor.SendMessage(SupervisorAction.Register, supervised); supervisor.SendMessage(SupervisorAction.Kill, supervised); supervisor.SendMessage(SupervisorAction.Respawn, supervised); fLauncher.Finish(); }); fLauncher.Wait(); }