Exemple #1
0
        public static async Task ThrowsRandomExceptionAsync()
        {
            switch (_random.Next(1, 2))
            {
            case 1: await ExceptionHelpers.ThrowsRandomSystemExceptionAsync().ConfigureAwait(false); break;

            case 2: await ExceptionHelpers.ThrowsRandomNetworkExceptionAsync().ConfigureAwait(false); break;
            }
        }
        public static async Task ThrowsRandomExceptionAsync()
        {
            switch (_random.Next(1, 2))
            {
            case 1: await ExceptionHelpers.ThrowsRandomSystemExceptionAsync(); break;

            case 2: await ExceptionHelpers.ThrowsRandomNetworkExceptionAsync(); break;

            default: break;
            }
        }
Exemple #3
0
 public static async Task ThrowsNetworkExceptionAsync()
 {
     await ExceptionHelpers.ThrowsRandomNetworkExceptionAsync().ConfigureAwait(false);
 }
 public static async Task ThrowsNetworkExceptionAsync()
 {
     await ExceptionHelpers.ThrowsRandomNetworkExceptionAsync();
 }