For some reason string? x = default
doesn't get highlighted as an optional parameter. Why and how do I solve that?
An expression tree cannot contain a call or invocation that uses optional parameters
public async Task<IEnumerable<Item>> GetItems(double? a = default, double? b = default, string? x = default, string? y = default)
var items = new List<Item>();
// it doesn't let me to this. An expression tree cannot contain a call or invocation that uses optional parameters
mock.Setup(x => x.GetItems()).ReturnsAsync(items);
// it lets me do this
mock.Setup(x => x.GetItems(null, null, null, null)).ReturnsAsync(items);