C# Класс Objectivity.Test.Automation.Common.Helpers.WaitHelper

Contains wait methods with timeouts
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Wait ( Func condition, System.TimeSpan timeout, System.TimeSpan sleepInterval ) : bool

Wait for a condition with given timeout and timeInterval.

Wait ( Func condition, System.TimeSpan timeout, System.TimeSpan sleepInterval, string message ) : void

Wait for a condition with given timeout and timeInterval.

Wait ( Func condition, System.TimeSpan timeout, string message ) : void

Wait for a condition with given timeout.

Описание методов

Wait() публичный статический Метод

Wait for a condition with given timeout and timeInterval.
public static Wait ( Func condition, System.TimeSpan timeout, System.TimeSpan sleepInterval ) : bool
condition Func The condition to be met.
timeout System.TimeSpan The timeout value [seconds] indicating how long to wait for the condition.
sleepInterval System.TimeSpan The value [seconds] indicating how often to check for the condition to be true.
Результат bool

Wait() публичный статический Метод

Wait for a condition with given timeout and timeInterval.
Timeout exception when condition is not met
public static Wait ( Func condition, System.TimeSpan timeout, System.TimeSpan sleepInterval, string message ) : void
condition Func The condition to be met.
timeout System.TimeSpan The timeout value [seconds] indicating how long to wait for the condition.
sleepInterval System.TimeSpan The value [seconds] indicating how often to check for the condition to be true.
message string The exception message
Результат void

Wait() публичный статический Метод

Wait for a condition with given timeout.
Timeout exception when condition is not met
public static Wait ( Func condition, System.TimeSpan timeout, string message ) : void
condition Func The condition to be met.
timeout System.TimeSpan The timeout value [seconds] indicating how long to wait for the condition.
message string The exception message
Результат void