Ejemplo n.º 1
0
 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);
     });
 }
Ejemplo n.º 2
0
 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);
     });
 }