Skip to content

Commit

Permalink
Add test to verify dotnet#7417 is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
tuespetre committed Feb 4, 2017
1 parent 6bc489f commit 38ae8ac
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5413,6 +5413,21 @@ public virtual void GroupJoin_with_different_outer_elements_with_same_key_projec
}));
}

[ConditionalFact]
public virtual void GroupJoin_SelectMany()
{
AssertQuery<Customer, Order>(
(cs, os) => cs
.GroupJoin(
os,
c => c.CustomerID,
o => o.CustomerID,
(c, o) => new { c, o })
.SelectMany(
co => co.o,
(co, o) => new { co.c.ContactName, o.OrderDate }));
}

[ConditionalFact]
public virtual void SelectMany_Joined()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7134,6 +7134,17 @@ FROM [Customers] AS [c]
Sql);
}

public override void GroupJoin_SelectMany()
{
base.GroupJoin_SelectMany();

Assert.Equal(
@"SELECT [c].[ContactName], [o].[OrderDate]
FROM [Customers] AS [c]
INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]",
Sql);
}

private const string FileLineEnding = @"
";

Expand Down

0 comments on commit 38ae8ac

Please sign in to comment.