Wait |
public static void Wait( Func<bool> condition, TimeSpan timeout, string message )
Exception | Condition |
---|---|
WaitTimeoutException | Timeout exception when condition is not met. |
WaitHelper.Wait(() => CountFiles(folder, type) > filesNumber, TimeSpan.FromSeconds(waitTime), timeoutMessage);