public void RetryExecTest() { try { PolicyHelper.RetryExec <DivideByZeroException>(() => { Console.WriteLine("func........."); throw new DivideByZeroException(); }); } catch (Exception ex) { } Assert.Pass(); }