public void ReceiveWaitTimeOut2Test() { TestLauncherActor.Test(() => { var actor = new ReceiveActor <int, string>(); var target = new TargetActor(); var resultEven = actor.Wait((IActor)target, 2, 2000); Assert.IsTrue(resultEven.Result.Item2 == "even"); }); }
public void ReceiveWait4Test() { TestLauncherActor.Test(() => { var actor = new ReceiveActor <int>(); var target = new TargetActor2(); var resultEven = actor.Wait(target, 2); Assert.IsTrue(resultEven.Result.Item2 == 4); }); }
public void ReceiveWaitTimeOut1Test() { TestLauncherActor.Test(() => { var actor = new ReceiveActor <int, string>(); var target = new TargetActor(); var resultOdd = actor.Wait(target, 1, 10000); Assert.IsTrue(resultOdd.Result.Item2 == "odd"); }); }
public void ReceiveWaitTimeOut3Test() { TestLauncherActor.Test(() => { var actor = new ReceiveActor <int>(); var target = new TargetActor2(); var resultEven = actor.Wait((IActor)target, 1, 2000); Assert.IsTrue(resultEven.Result.Item2 == 2); }); }
public int WaitForResult() { var res = fWait.Wait(this, "Start").Result; return(fSum); }