@@ -479,19 +479,19 @@ public async Task NullEqualityAsync()
479
479
return ;
480
480
}
481
481
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 ( ) ) ) ;
486
486
487
487
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 ( ) ) ) ;
490
490
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 ( ) ) ) ;
495
495
496
496
await ( ExpectAsync ( db . NumericEntities . Where ( o => o . NullableShort == 3L ) , WithoutIsNullAndWithoutCast ( ) ) ) ;
497
497
await ( ExpectAsync ( db . NumericEntities . Where ( o => 3L == o . NullableShort ) , WithoutIsNullAndWithoutCast ( ) ) ) ;
@@ -594,19 +594,19 @@ public async Task NullInequalityAsync()
594
594
return ;
595
595
}
596
596
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 ( ) ) ) ;
601
601
602
602
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 ( ) ) ) ;
605
605
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 ( ) ) ) ;
610
610
611
611
await ( ExpectAsync ( db . NumericEntities . Where ( o => o . NullableShort != 3L ) , WithIsNullAndWithoutCast ( ) ) ) ;
612
612
await ( ExpectAsync ( db . NumericEntities . Where ( o => 3 != o . NullableShort ) , WithIsNullAndWithoutCast ( ) ) ) ;
0 commit comments