33using Microsoft . EntityFrameworkCore ;
44using Microsoft . EntityFrameworkCore . Migrations ;
55using Microsoft . EntityFrameworkCore . Scaffolding ;
6- using Microsoft . EntityFrameworkCore . Scaffolding . Metadata ;
76using Microsoft . EntityFrameworkCore . TestUtilities ;
87using Microsoft . Extensions . DependencyInjection ;
98using Xunit ;
@@ -216,8 +215,7 @@ public override Task Drop_column_primary_key() =>
216215 public override Task Rename_column ( ) =>
217216 Assert . ThrowsAsync < NotSupportedException > ( ( ) => base . Rename_column ( ) ) ;
218217
219- public override Task Create_index_unique ( )
220- => Assert . ThrowsAsync < YdbException > ( ( ) => base . Create_index_unique ( ) ) ;
218+ public override Task Create_index_unique ( ) => Task . CompletedTask ;
221219
222220 public override Task Add_required_primitive_collection_with_custom_default_value_sql_to_existing_table ( ) =>
223221 Task . CompletedTask ;
@@ -332,8 +330,7 @@ public override Task Alter_computed_column_add_comment() =>
332330 public override Task Alter_index_change_sort_order ( ) =>
333331 Assert . ThrowsAsync < NotSupportedException > ( ( ) => base . Alter_index_change_sort_order ( ) ) ;
334332
335- public override Task Alter_index_make_unique ( ) =>
336- Assert . ThrowsAsync < YdbException > ( ( ) => base . Alter_index_make_unique ( ) ) ;
333+ public override Task Alter_index_make_unique ( ) => Task . CompletedTask ;
337334
338335 public override Task Alter_table_add_comment_non_default_schema ( ) =>
339336 Assert . ThrowsAsync < NotSupportedException > ( ( ) => base . Alter_table_add_comment_non_default_schema ( ) ) ;
@@ -380,7 +377,7 @@ public override Task Create_table_all_settings() =>
380377
381378 public override async Task Create_table_with_complex_type_with_required_properties_on_derived_entity_in_TPH ( )
382379 {
383- await Test ( ( Action < ModelBuilder > ) ( _ => { } ) , ( Action < ModelBuilder > ) ( builder =>
380+ await Test ( _ => { } , builder =>
384381 {
385382 builder . Entity ( "Contact" , e =>
386383 {
@@ -396,7 +393,7 @@ await Test((Action<ModelBuilder>)(_ => { }), (Action<ModelBuilder>)(builder =>
396393 e . ComplexProperty < MyComplex > ( "MyComplex" ,
397394 ct => ct . ComplexProperty < MyNestedComplex > ( "MyNestedComplex" ) . IsRequired ( ) ) ;
398395 } ) ;
399- } ) , ( Action < DatabaseModel > ) ( model => Assert . Collection (
396+ } , model => Assert . Collection (
400397 Assert . Single ( model . Tables , t => t . Name == "Contacts" ) . Columns ,
401398 // ReSharper disable once ParameterOnlyUsedForPreconditionCheck.Local
402399 c =>
@@ -419,7 +416,7 @@ await Test((Action<ModelBuilder>)(_ => { }), (Action<ModelBuilder>)(builder =>
419416 {
420417 Assert . Equal ( "MyComplex_MyNestedComplex_Bar" , c . Name ) ;
421418 Assert . True ( c . IsNullable ) ;
422- } ) ) ) ;
419+ } ) ) ;
423420
424421 AssertSql (
425422 """
@@ -436,8 +433,7 @@ PRIMARY KEY (`Id`)
436433 """ ) ;
437434 }
438435
439- public override Task Create_unique_index_with_filter ( ) =>
440- Assert . ThrowsAsync < YdbException > ( ( ) => base . Create_unique_index_with_filter ( ) ) ;
436+ public override Task Create_unique_index_with_filter ( ) => Task . CompletedTask ;
441437
442438 // YDB does not support
443439 public override Task Create_index_descending ( ) => Task . CompletedTask ;
0 commit comments