示例#1
0
        /// <summary>
        /// Wait for the expectation to become <c>false</c>.
        /// Throw on timeout.
        /// Use the default timeout as specified by configuration in the root object.
        /// </summary>
        /// <param name="awaitObject">The await object.</param>
        /// <param name="expectationText">The expectation text.</param>
        public static void WaitForFalse(this IAwait <bool> awaitObject, string expectationText)
        {
            Predicate <bool> expectation = v => v == false;

            awaitObject.WaitFor(expectation, expectationText);
        }
示例#2
0
 /// <summary>
 /// Wait until the property evaluates to true.
 /// </summary>
 public void WaitFor() => waiter.WaitFor(value => value, "is true");