Skip to content

Commit

Permalink
Workaround params span overload chosen in expression
Browse files Browse the repository at this point in the history
  • Loading branch information
ericstj committed May 28, 2024
1 parent 4d92e69 commit dae7d42
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1698,7 +1698,7 @@ public virtual Task TrimStart_with_char_argument_in_predicate(bool async)
public virtual Task TrimStart_with_char_array_argument_in_predicate(bool async)
=> AssertQuery(
async,
ss => ss.Set<Customer>().Where(c => c.ContactTitle.TrimStart('O', 'w') == "ner"));
ss => ss.Set<Customer>().Where(c => c.ContactTitle.TrimStart(new [] {'O', 'w'}) == "ner"));

[ConditionalTheory]
[MemberData(nameof(IsAsyncData))]
Expand All @@ -1719,7 +1719,7 @@ public virtual Task TrimEnd_with_char_argument_in_predicate(bool async)
public virtual Task TrimEnd_with_char_array_argument_in_predicate(bool async)
=> AssertQuery(
async,
ss => ss.Set<Customer>().Where(c => c.ContactTitle.TrimEnd('e', 'r') == "Own"));
ss => ss.Set<Customer>().Where(c => c.ContactTitle.TrimEnd(new [] {'e', 'r'}) == "Own"));

[ConditionalTheory]
[MemberData(nameof(IsAsyncData))]
Expand All @@ -1740,7 +1740,7 @@ public virtual Task Trim_with_char_argument_in_predicate(bool async)
public virtual Task Trim_with_char_array_argument_in_predicate(bool async)
=> AssertQuery(
async,
ss => ss.Set<Customer>().Where(c => c.ContactTitle.Trim('O', 'r') == "wne"));
ss => ss.Set<Customer>().Where(c => c.ContactTitle.Trim(new [] {'O', 'r'}) == "wne"));

[ConditionalTheory]
[MemberData(nameof(IsAsyncData))]
Expand Down

0 comments on commit dae7d42

Please sign in to comment.