File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
test/EFCore.Specification.Tests/Query Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -423,14 +423,14 @@ await AssertQuery(
423
423
[ MemberData ( nameof ( IsAsyncData ) ) ]
424
424
public virtual async Task Parameter_collection_of_strings_Contains_nullable_string ( bool async )
425
425
{
426
- var strings = new [ ] { "10" , "999" } ;
426
+ string ? [ ] strings = [ "10" , "999" ] ;
427
427
428
428
await AssertQuery (
429
429
async ,
430
- ss => ss. Set < PrimitiveCollectionsEntity > ( ) . Where ( c => strings . Any ( s => s == c . NullableString ) ) ) ;
430
+ ss => ss. Set < PrimitiveCollectionsEntity > ( ) . Where ( c => strings . Contains ( c . NullableString ) ) ) ;
431
431
await AssertQuery (
432
432
async ,
433
- ss => ss. Set < PrimitiveCollectionsEntity > ( ) . Where ( c => ! strings . Any ( s => s == c . NullableString ) ) ) ;
433
+ ss => ss. Set < PrimitiveCollectionsEntity > ( ) . Where ( c => ! strings . Contains ( c . NullableString ) ) ) ;
434
434
}
435
435
436
436
[ ConditionalTheory ]
@@ -574,7 +574,7 @@ public virtual Task Column_collection_of_nullable_ints_Contains_null(bool async)
574
574
public virtual Task Column_collection_of_strings_contains_null ( bool async )
575
575
=> AssertQuery (
576
576
async ,
577
- ss => ss . Set < PrimitiveCollectionsEntity > ( ) . Where ( c => c . Strings . Any ( s => s == null ) ) ,
577
+ ss => ss . Set < PrimitiveCollectionsEntity > ( ) . Where ( c => ( ( string ? [ ] ) c . Strings ) . Contains ( null ) ) ,
578
578
assertEmpty: true) ;
579
579
580
580
[ ConditionalTheory ]
You can’t perform that action at this time.
0 commit comments