public void RetryAsyncAction() { // Arrange && Act. var result = Retrier.Init() .Invoke(async() => await FakeService.DoFakeCalculationsAsync()); // Assert. Assert.Equal(1, result.RetryInfo.Executions); Assert.True(result.Successful); }
public void RetryAsyncAction() { // Arrange && Act. var result = Retrier.Init() .Invoke(async() => await FakeService.DoFakeCalculationsAsync()); // Assert. Assert.Equal(1, result.RetryInfo.Executions); Assert.True(result.Successful); }