示例#1
0
 public void TimeOut_NotExpired()
 {
     Assert.IsFalse(SimpleFunctions.TimeOut(
                        delegate()
     {
         Thread.Sleep(450);
     }, 500));
 }
示例#2
0
 public void TimeOut_Expired()
 {
     Assert.IsTrue(SimpleFunctions.TimeOut(
                       delegate()
     {
         Thread.Sleep(500);
     }, 500));
 }