public void AzureTableErrorCode_IsRetriableHttpError() { Assert.True(AzureTableUtils.IsRetriableHttpError((HttpStatusCode)503, null)); Assert.True(AzureTableUtils.IsRetriableHttpError((HttpStatusCode)504, null)); Assert.True(AzureTableUtils.IsRetriableHttpError((HttpStatusCode)408, null)); Assert.True(AzureTableUtils.IsRetriableHttpError((HttpStatusCode)500, "OperationTimedOut")); Assert.False(AzureTableUtils.IsRetriableHttpError((HttpStatusCode)500, null)); Assert.False(AzureTableUtils.IsRetriableHttpError((HttpStatusCode)500, "SomeOtherStatusValue")); // Current behaviour is to ignore successes as not retriable: Assert.False(AzureTableUtils.IsRetriableHttpError((HttpStatusCode)200, null)); }