public void RetryAsyncFallback() { // Arrange. int zero = 0; // Act. var result = Retrier.Init() .WithNumberOfRetries(0) .WithMsWaitOf(0) .Invoke(() => 2 / zero) .WithFallBackAsync(async() => await FakeService.GetIntAsync()) .WaitForValue(); // Assert. Assert.Equal(1, result.Result); Assert.Equal(2, result.RetryInfo.Executions); Assert.False(result.Successful); }