コード例 #1
0
 public void TestTarget()
 {
     var start = new DateTime(1970, 1, 1, 0, 0, 0);
       var delay = TimeSpan.FromSeconds(5);
       var env = new Environment(start);
       var @event = env.Timeout(delay);
       var proc = env.Process(TargetPem(env, @event));
       while (env.Peek() < start + delay) {
     env.Step();
       }
       Assert.AreEqual(proc.Target, @event);
       proc.Interrupt();
 }