public void TimeOut_NotExpired() { Assert.IsFalse(SimpleFunctions.TimeOut( delegate() { Thread.Sleep(450); }, 500)); }
public void TimeOut_Expired() { Assert.IsTrue(SimpleFunctions.TimeOut( delegate() { Thread.Sleep(500); }, 500)); }