Exemplo n.º 1
0
        public void SimpleNegativeRetryerTest()
        {
            var retryerUtils = new RetryerUtils(5, TimeSpan.FromSeconds(3), TimeSpan.FromSeconds(1));
            var success      = retryerUtils.Retry(() => SimpleTestAction("NegativeTest"));

            StfAssert.IsFalse("NegativeTest", success);
        }
Exemplo n.º 2
0
        public void SimpleSuccessRetryerFunctionTest()
        {
            var retryerUtils = new RetryerUtils(5, TimeSpan.FromSeconds(3), TimeSpan.FromSeconds(1));
            var success      = retryerUtils.Retry(() => SimpleTestFunction("wait", 3));

            StfAssert.IsTrue("Wait", success);
        }