Beispiel #1
0
 public void RetryPolicyFactoryConstructsPoliciesSuccessfully()
 {
     TestUtils.RunIfWindows(() =>
     {
         Assert.NotNull(RetryPolicyFactory.CreateColumnEncryptionTransferRetryPolicy());
         Assert.NotNull(RetryPolicyFactory.CreateDatabaseCommandRetryPolicy());
         Assert.NotNull(RetryPolicyFactory.CreateDataScriptUpdateRetryPolicy());
         Assert.NotNull(RetryPolicyFactory.CreateDefaultConnectionRetryPolicy());
         Assert.NotNull(RetryPolicyFactory.CreateDefaultDataConnectionRetryPolicy());
         Assert.NotNull(RetryPolicyFactory.CreateDefaultDataSqlCommandRetryPolicy());
         Assert.NotNull(RetryPolicyFactory.CreateDefaultDataTransferRetryPolicy());
         Assert.NotNull(RetryPolicyFactory.CreateDefaultSchemaCommandRetryPolicy(true));
         Assert.NotNull(RetryPolicyFactory.CreateDefaultSchemaConnectionRetryPolicy());
         Assert.NotNull(RetryPolicyFactory.CreateElementCommandRetryPolicy());
         Assert.NotNull(RetryPolicyFactory.CreateFastDataRetryPolicy());
         Assert.NotNull(RetryPolicyFactory.CreateNoRetryPolicy());
         Assert.NotNull(RetryPolicyFactory.CreatePrimaryKeyCommandRetryPolicy());
         Assert.NotNull(RetryPolicyFactory.CreateSchemaCommandRetryPolicy(6));
         Assert.NotNull(RetryPolicyFactory.CreateSchemaConnectionRetryPolicy(6));
     });
 }