Пример #1
0
        public virtual void TestLoopWithTimeoutReturnsWhenBlockIsFalse()
        {
            StopWatch watch = new AutoStopWatch();

            Runtime4.Retry(500, new _IClosure4_14());
            Assert.IsSmaller(500, watch.Peek());
        }
Пример #2
0
        public virtual void TestLoopWithTimeoutReturnsAfterTimeout()
        {
            StopWatch watch = new AutoStopWatch();

            Runtime4.Retry(500, new _IClosure4_24());
            watch.Stop();
            Assert.IsGreaterOrEqual(500, watch.Elapsed());
        }