public void ReceiveWait4Test() { TestLauncherActor.Test(() => { var actor = new ReceiveActor <int>(); var target = new TargetActor2(); var resultEven = actor.WaitAsync(target, 2); Assert.IsTrue(resultEven.Result.Item2 == 4); }); }
public void ReceiveWaitTimeOut3Test() { TestLauncherActor.Test(() => { var actor = new ReceiveActor <int>(); var target = new TargetActor2(); var resultEven = actor.WaitAsync((IActor)target, 1, 2000); Assert.IsTrue(resultEven.Result.Item2 == 2); }); }