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(
423423 [ MemberData ( nameof ( IsAsyncData ) ) ]
424424 public virtual async Task Parameter_collection_of_strings_Contains_nullable_string ( bool async )
425425 {
426- var strings = new [ ] { "10" , "999" } ;
426+ string ? [ ] strings = [ "10" , "999" ] ;
427427
428428 await AssertQuery (
429429 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 ) ) ) ;
431431 await AssertQuery (
432432 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 ) ) ) ;
434434 }
435435
436436 [ ConditionalTheory ]
@@ -574,7 +574,7 @@ public virtual Task Column_collection_of_nullable_ints_Contains_null(bool async)
574574 public virtual Task Column_collection_of_strings_contains_null ( bool async )
575575 => AssertQuery (
576576 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 ) ) ,
578578 assertEmpty: true) ;
579579
580580 [ ConditionalTheory ]
You can’t perform that action at this time.
0 commit comments