@@ -479,19 +479,19 @@ public async Task NullEqualityAsync()
479479 return ;
480480 }
481481
482- await ( ExpectAsync ( db . NumericEntities . Where ( o => o . NullableShort == o . NullableShort ) , Does . Contain ( "is null" ) . IgnoreCase . And . Not . Contain ( "cast" ) ) ) ;
483- await ( ExpectAsync ( db . NumericEntities . Where ( o => o . Short == o . Short ) , Does . Not . Contain ( "is null" ) . IgnoreCase . And . Not . Contain ( "cast" ) ) ) ;
484- await ( ExpectAsync ( db . NumericEntities . Where ( o => o . NullableShort == o . Short ) , Does . Not . Contain ( "is null" ) . IgnoreCase . And . Not . Contain ( "cast" ) ) ) ;
485- await ( ExpectAsync ( db . NumericEntities . Where ( o => o . Short == o . NullableShort ) , Does . Not . Contain ( "is null" ) . IgnoreCase . And . Not . Contain ( "cast" ) ) ) ;
482+ await ( ExpectAsync ( db . NumericEntities . Where ( o => o . NullableShort == o . NullableShort ) , WithIsNullAndWithoutCast ( ) ) ) ;
483+ await ( ExpectAsync ( db . NumericEntities . Where ( o => o . Short == o . Short ) , WithoutIsNullAndWithoutCast ( ) ) ) ;
484+ await ( ExpectAsync ( db . NumericEntities . Where ( o => o . NullableShort == o . Short ) , WithoutIsNullAndWithoutCast ( ) ) ) ;
485+ await ( ExpectAsync ( db . NumericEntities . Where ( o => o . Short == o . NullableShort ) , WithoutIsNullAndWithoutCast ( ) ) ) ;
486486
487487 short value = 3 ;
488- await ( ExpectAsync ( db . NumericEntities . Where ( o => o . NullableShort == value ) , Does . Not . Contain ( "is null" ) . IgnoreCase . And . Not . Contain ( "cast" ) ) ) ;
489- await ( ExpectAsync ( db . NumericEntities . Where ( o => value == o . NullableShort ) , Does . Not . Contain ( "is null" ) . IgnoreCase . And . Not . Contain ( "cast" ) ) ) ;
488+ await ( ExpectAsync ( db . NumericEntities . Where ( o => o . NullableShort == value ) , WithoutIsNullAndWithoutCast ( ) ) ) ;
489+ await ( ExpectAsync ( db . NumericEntities . Where ( o => value == o . NullableShort ) , WithoutIsNullAndWithoutCast ( ) ) ) ;
490490
491- await ( ExpectAsync ( db . NumericEntities . Where ( o => o . NullableShort . Value == value ) , Does . Not . Contain ( "is null" ) . IgnoreCase . And . Not . Contain ( "cast" ) ) ) ;
492- await ( ExpectAsync ( db . NumericEntities . Where ( o => value == o . NullableShort . Value ) , Does . Not . Contain ( "is null" ) . IgnoreCase . And . Not . Contain ( "cast" ) ) ) ;
493- await ( ExpectAsync ( db . NumericEntities . Where ( o => o . Short == value ) , Does . Not . Contain ( "is null" ) . IgnoreCase . And . Not . Contain ( "cast" ) ) ) ;
494- await ( ExpectAsync ( db . NumericEntities . Where ( o => value == o . Short ) , Does . Not . Contain ( "is null" ) . IgnoreCase . And . Not . Contain ( "cast" ) ) ) ;
491+ await ( ExpectAsync ( db . NumericEntities . Where ( o => o . NullableShort . Value == value ) , WithoutIsNullAndWithoutCast ( ) ) ) ;
492+ await ( ExpectAsync ( db . NumericEntities . Where ( o => value == o . NullableShort . Value ) , WithoutIsNullAndWithoutCast ( ) ) ) ;
493+ await ( ExpectAsync ( db . NumericEntities . Where ( o => o . Short == value ) , WithoutIsNullAndWithoutCast ( ) ) ) ;
494+ await ( ExpectAsync ( db . NumericEntities . Where ( o => value == o . Short ) , WithoutIsNullAndWithoutCast ( ) ) ) ;
495495
496496 await ( ExpectAsync ( db . NumericEntities . Where ( o => o . NullableShort == 3L ) , WithoutIsNullAndWithoutCast ( ) ) ) ;
497497 await ( ExpectAsync ( db . NumericEntities . Where ( o => 3L == o . NullableShort ) , WithoutIsNullAndWithoutCast ( ) ) ) ;
@@ -594,19 +594,19 @@ public async Task NullInequalityAsync()
594594 return ;
595595 }
596596
597- await ( ExpectAsync ( db . NumericEntities . Where ( o => o . NullableShort != o . NullableShort ) , Does . Contain ( "is null" ) . IgnoreCase . And . Not . Contain ( "cast" ) ) ) ;
598- await ( ExpectAsync ( db . NumericEntities . Where ( o => o . Short != o . Short ) , Does . Not . Contain ( "is null" ) . IgnoreCase . And . Not . Contain ( "cast" ) ) ) ;
599- await ( ExpectAsync ( db . NumericEntities . Where ( o => o . NullableShort != o . Short ) , Does . Contain ( "is null" ) . IgnoreCase . And . Not . Contain ( "cast" ) ) ) ;
600- await ( ExpectAsync ( db . NumericEntities . Where ( o => o . Short != o . NullableShort ) , Does . Contain ( "is null" ) . IgnoreCase . And . Not . Contain ( "cast" ) ) ) ;
597+ await ( ExpectAsync ( db . NumericEntities . Where ( o => o . NullableShort != o . NullableShort ) , WithIsNullAndWithoutCast ( ) ) ) ;
598+ await ( ExpectAsync ( db . NumericEntities . Where ( o => o . Short != o . Short ) , WithoutIsNullAndWithoutCast ( ) ) ) ;
599+ await ( ExpectAsync ( db . NumericEntities . Where ( o => o . NullableShort != o . Short ) , WithIsNullAndWithoutCast ( ) ) ) ;
600+ await ( ExpectAsync ( db . NumericEntities . Where ( o => o . Short != o . NullableShort ) , WithIsNullAndWithoutCast ( ) ) ) ;
601601
602602 short value = 3 ;
603- await ( ExpectAsync ( db . NumericEntities . Where ( o => o . NullableShort != value ) , Does . Contain ( "is null" ) . IgnoreCase . And . Not . Contain ( "cast" ) ) ) ;
604- await ( ExpectAsync ( db . NumericEntities . Where ( o => value != o . NullableShort ) , Does . Contain ( "is null" ) . IgnoreCase . And . Not . Contain ( "cast" ) ) ) ;
603+ await ( ExpectAsync ( db . NumericEntities . Where ( o => o . NullableShort != value ) , WithIsNullAndWithoutCast ( ) ) ) ;
604+ await ( ExpectAsync ( db . NumericEntities . Where ( o => value != o . NullableShort ) , WithIsNullAndWithoutCast ( ) ) ) ;
605605
606- await ( ExpectAsync ( db . NumericEntities . Where ( o => o . NullableShort . Value != value ) , Does . Contain ( "is null" ) . IgnoreCase . And . Not . Contain ( "cast" ) ) ) ;
607- await ( ExpectAsync ( db . NumericEntities . Where ( o => value != o . NullableShort . Value ) , Does . Contain ( "is null" ) . IgnoreCase . And . Not . Contain ( "cast" ) ) ) ;
608- await ( ExpectAsync ( db . NumericEntities . Where ( o => o . Short != value ) , Does . Not . Contain ( "is null" ) . IgnoreCase . And . Not . Contain ( "cast" ) ) ) ;
609- await ( ExpectAsync ( db . NumericEntities . Where ( o => value != o . Short ) , Does . Not . Contain ( "is null" ) . IgnoreCase . And . Not . Contain ( "cast" ) ) ) ;
606+ await ( ExpectAsync ( db . NumericEntities . Where ( o => o . NullableShort . Value != value ) , WithIsNullAndWithoutCast ( ) ) ) ;
607+ await ( ExpectAsync ( db . NumericEntities . Where ( o => value != o . NullableShort . Value ) , WithIsNullAndWithoutCast ( ) ) ) ;
608+ await ( ExpectAsync ( db . NumericEntities . Where ( o => o . Short != value ) , WithoutIsNullAndWithoutCast ( ) ) ) ;
609+ await ( ExpectAsync ( db . NumericEntities . Where ( o => value != o . Short ) , WithoutIsNullAndWithoutCast ( ) ) ) ;
610610
611611 await ( ExpectAsync ( db . NumericEntities . Where ( o => o . NullableShort != 3L ) , WithIsNullAndWithoutCast ( ) ) ) ;
612612 await ( ExpectAsync ( db . NumericEntities . Where ( o => 3 != o . NullableShort ) , WithIsNullAndWithoutCast ( ) ) ) ;
0 commit comments