diff --git a/test/EFCore.Relational.Specification.Tests/Query/NullSemanticsQueryTestBase.cs b/test/EFCore.Relational.Specification.Tests/Query/NullSemanticsQueryTestBase.cs index 146acd711fa..ceebfdb3126 100644 --- a/test/EFCore.Relational.Specification.Tests/Query/NullSemanticsQueryTestBase.cs +++ b/test/EFCore.Relational.Specification.Tests/Query/NullSemanticsQueryTestBase.cs @@ -565,7 +565,7 @@ public virtual Task Where_not_equal_with_coalesce(bool async) public virtual Task Where_equal_with_coalesce_both_sides(bool async) => AssertQueryScalar( async, - ss => ss.Set().Where(e => (e.NullableStringA ?? e.NullableStringB) == (e.StringA ?? e.StringB)) + ss => ss.Set().Where(e => (e.NullableStringA ?? e.NullableStringB) == (e.NullableStringC ?? e.StringA)) .Select(e => e.Id)); [ConditionalTheory] diff --git a/test/EFCore.Specification.Tests/Query/GearsOfWarQueryTestBase.cs b/test/EFCore.Specification.Tests/Query/GearsOfWarQueryTestBase.cs index 50d9e1ee805..04541b3c413 100644 --- a/test/EFCore.Specification.Tests/Query/GearsOfWarQueryTestBase.cs +++ b/test/EFCore.Specification.Tests/Query/GearsOfWarQueryTestBase.cs @@ -1793,21 +1793,21 @@ from g2 in grouping.DefaultIfEmpty() public virtual Task Coalesce_operator_in_predicate(bool async) => AssertQuery( async, - ss => ss.Set().Where(w => (bool?)w.IsAutomatic ?? false)); + ss => ss.Set().Where(x => (bool?)x.Gear.HasSoulPatch ?? false)); [ConditionalTheory] [MemberData(nameof(IsAsyncData))] public virtual Task Coalesce_operator_in_predicate_with_other_conditions(bool async) => AssertQuery( async, - ss => ss.Set().Where(w => w.AmmunitionType == AmmunitionType.Cartridge && ((bool?)w.IsAutomatic ?? false))); + ss => ss.Set().Where(x => x.Note != "K.I.A." && ((bool?)x.Gear.HasSoulPatch ?? false))); [ConditionalTheory] [MemberData(nameof(IsAsyncData))] public virtual Task Coalesce_operator_in_projection_with_other_conditions(bool async) => AssertQueryScalar( async, - ss => ss.Set().Select(w => w.AmmunitionType == AmmunitionType.Cartridge && ((bool?)w.IsAutomatic ?? false))); + ss => ss.Set().Select(x => x.Note != "K.I.A." && ((bool?)x.Gear.HasSoulPatch ?? false))); [ConditionalTheory] [MemberData(nameof(IsAsyncData))] diff --git a/test/EFCore.Specification.Tests/Query/NorthwindMiscellaneousQueryTestBase.cs b/test/EFCore.Specification.Tests/Query/NorthwindMiscellaneousQueryTestBase.cs index 2afa772e4e9..3592a8f744b 100644 --- a/test/EFCore.Specification.Tests/Query/NorthwindMiscellaneousQueryTestBase.cs +++ b/test/EFCore.Specification.Tests/Query/NorthwindMiscellaneousQueryTestBase.cs @@ -2698,7 +2698,7 @@ public virtual Task Filter_coalesce_operator(bool async) => AssertQuery( async, ss => ss.Set() - .Where(c => (c.CompanyName ?? c.ContactName) == "The Big Cheese")); + .Where(c => (c.ContactName ?? c.CompanyName) == "Liz Nixon")); [ConditionalTheory] [MemberData(nameof(IsAsyncData))]