44
55namespace Microsoft . Data . SqlClient . ManualTesting . Tests . AlwaysEncrypted
66{
7- public class ExceptionsGenericErrors : IClassFixture < ExceptionGenericErrorFixture > {
8-
7+ public class ExceptionsGenericErrors : IClassFixture < ExceptionGenericErrorFixture >
8+ {
99 [ ConditionalTheory ( typeof ( DataTestUtility ) , nameof ( DataTestUtility . AreConnStringSetupForAE ) , nameof ( DataTestUtility . IsNotAzureServer ) , Skip = "ActiveIssue 10036" ) ]
1010 [ ClassData ( typeof ( AEConnectionStringProvider ) ) ]
11- public void TestCommandOptionWithNoTceFeature ( string connectionString ) {
11+ public void TestCommandOptionWithNoTceFeature ( string connectionString )
12+ {
1213 SqlConnectionStringBuilder sb = new SqlConnectionStringBuilder ( connectionString ) ;
13- CertificateUtility . ChangeServerTceSetting ( false , sb ) ; // disable TCE on engine.
14+ CertificateUtility . ChangeServerTceSetting ( false , sb ) ; // disable TCE on engine.
1415 using ( SqlConnection conn = CertificateUtility . GetOpenConnection ( false , sb , fSuppressAttestation : true ) )
1516 {
1617 using ( SqlCommand cmd = new SqlCommand ( ExceptionGenericErrorFixture . encryptedProcedureName , conn , null , SqlCommandColumnEncryptionSetting . Enabled ) )
@@ -23,12 +24,13 @@ public void TestCommandOptionWithNoTceFeature (string connectionString) {
2324 }
2425 }
2526 // Turn on TCE now
26- CertificateUtility . ChangeServerTceSetting ( true , sb ) ; // enable tce
27+ CertificateUtility . ChangeServerTceSetting ( true , sb ) ; // enable tce
2728 }
2829
2930 [ ConditionalTheory ( typeof ( DataTestUtility ) , nameof ( DataTestUtility . AreConnStringSetupForAE ) , nameof ( DataTestUtility . IsNotAzureServer ) ) ]
3031 [ ClassData ( typeof ( AEConnectionStringProvider ) ) ]
31- public void TestDataAdapterAndEncrytionSetting ( string connectionString ) {
32+ public void TestDataAdapterAndEncrytionSetting ( string connectionString )
33+ {
3234 SqlConnectionStringBuilder sb = new SqlConnectionStringBuilder ( connectionString ) ;
3335 // Create a new SqlCommand for select and delete
3436 using ( SqlConnection conn = CertificateUtility . GetOpenConnection ( false , sb ) )
@@ -56,7 +58,7 @@ public void TestDataAdapterAndEncrytionSetting (string connectionString) {
5658 rowInserted [ "c1" ] = 5 ;
5759 table . Rows . Add ( rowInserted ) ;
5860 adapter . UpdateBatchSize = 0 ; // remove batch size limit
59- // run batch update
61+ // run batch update
6062
6163 string expectedErrorMessage = "SqlCommandColumnEncryptionSetting should be identical on all commands (SelectCommand, InsertCommand, UpdateCommand, DeleteCommand) when doing batch updates." ;
6264 InvalidOperationException e = Assert . Throws < InvalidOperationException > ( ( ) => adapter . Update ( dataset ) ) ;
@@ -67,7 +69,8 @@ public void TestDataAdapterAndEncrytionSetting (string connectionString) {
6769
6870 [ ConditionalTheory ( typeof ( DataTestUtility ) , nameof ( DataTestUtility . AreConnStringSetupForAE ) , nameof ( DataTestUtility . IsNotAzureServer ) ) ]
6971 [ ClassData ( typeof ( AEConnectionStringProvider ) ) ]
70- public void TestInvalidForceColumnEncryptionSetting ( string connectionString ) {
72+ public void TestInvalidForceColumnEncryptionSetting ( string connectionString )
73+ {
7174 SqlConnectionStringBuilder sb = new SqlConnectionStringBuilder ( connectionString ) ;
7275 using ( SqlConnection conn = CertificateUtility . GetOpenConnection ( false , sb ) )
7376 {
@@ -85,7 +88,8 @@ public void TestInvalidForceColumnEncryptionSetting(string connectionString) {
8588
8689 [ ConditionalTheory ( typeof ( DataTestUtility ) , nameof ( DataTestUtility . AreConnStringSetupForAE ) , nameof ( DataTestUtility . IsNotAzureServer ) ) ]
8790 [ ClassData ( typeof ( AEConnectionStringProvider ) ) ]
88- public void TestParamUnexpectedEncryptionMD ( string connectionString ) {
91+ public void TestParamUnexpectedEncryptionMD ( string connectionString )
92+ {
8993 SqlConnectionStringBuilder sb = new SqlConnectionStringBuilder ( connectionString ) ;
9094 using ( SqlConnection conn = CertificateUtility . GetOpenConnection ( true , sb ) )
9195 {
0 commit comments