示例#1
0
 public void TestWait()
 {
     SyncResult result = new SyncResult(null, null);
      Assert.IsTrue(result.TryWaitFor(TimeSpan.Zero));
      Assert.IsTrue(result.TryWaitFor(TimeSpan.MaxValue));
      result.WaitFor();
      result.WaitFor(TimeSpan.Zero);
      result.WaitFor(TimeSpan.MaxValue);
 }