public void PostStopTest() { bool f = false; var acts = new ActorSystem(); var act = acts.CreateActor<IntoTestActor>(); var m = new poststoptestmsg() { poststop = () => { f = true; } }; var tsk = act.Ask<int>(m); tsk.Wait(); Assert.IsFalse(f); acts.StopActor(act); Assert.IsTrue(f); }
public int handler6(poststoptestmsg msg) { ps = msg.poststop; return 0; }