Skip to content

Commit

Permalink
Query: Add regression test for nav expansion inside interpolated stri…
Browse files Browse the repository at this point in the history
…ng (#16889)

Resolves #16724
  • Loading branch information
smitpatel authored Aug 1, 2019
1 parent 0f8f19a commit 8de388c
Show file tree
Hide file tree
Showing 6 changed files with 402 additions and 354 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4043,6 +4043,12 @@ public override Task Inner_parameter_in_nested_lambdas_gets_preserved(bool isAsy
return base.Inner_parameter_in_nested_lambdas_gets_preserved(isAsync);
}

[ConditionalTheory(Skip = "Issue #14935")]
public override Task Navigation_inside_interpolated_string_is_expanded(bool isAsync)
{
return base.Navigation_inside_interpolated_string_is_expanded(isAsync);
}

private void AssertSql(params string[] expected)
=> Fixture.TestSqlLoggerFactory.AssertBaseline(expected);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7474,6 +7474,15 @@ public virtual Task DateTimeOffset_Contains_Less_than_Greater_than(bool isAsync)
dates.Contains(m.Timeline)));
}

[ConditionalTheory] // issue #16724
[MemberData(nameof(IsAsyncData))]
public virtual Task Navigation_inside_interpolated_string_expanded(bool isAsync)
{
return AssertQuery<Weapon>(
isAsync,
ws => ws.Select(w => w.SynergyWithId.HasValue ? $"SynergyWithOwner: {w.SynergyWith.OwnerFullName}" : string.Empty));
}

protected GearsOfWarContext CreateContext() => Fixture.CreateContext();

protected virtual void ClearLog()
Expand Down
Loading

0 comments on commit 8de388c

Please sign in to comment.