Skip to content

Commit

Permalink
test fix for Issue #294
Browse files Browse the repository at this point in the history
  • Loading branch information
ili committed Feb 19, 2015
1 parent 53b3914 commit a40daeb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions UnitTests/Linq/GroupByTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1574,20 +1574,20 @@ public void Issue_294()
(from p in Parent
group p by new {p.ParentID}
into grp
select grp).ToList();
select grp).OrderBy(_ => _.Key.ParentID).ToList();
var expected2 =
(from p in Child
group p by new {p.ChildID, p.ParentID}
into grp
select grp).ToList();
select grp).OrderBy(_ => _.Key.ChildID).ThenBy(_ => _.Key.ParentID).ToList();

ForEachProvider(db =>
{
var result1 =
(from p in db.Parent
group p by new {p.ParentID}
into grp
select grp).ToList();
select grp).OrderBy(_ => _.Key.ParentID).ToList();
Assert.AreEqual(expected1.Count, result1.Count);
for (int i = 0; i < expected1.Count; i++)
Expand All @@ -1601,7 +1601,7 @@ into grp
(from p in db.Child
group p by new {p.ChildID, p.ParentID}
into grp
select grp).ToList();
select grp).OrderBy(_ => _.Key.ChildID).ThenBy(_ => _.Key.ParentID).ToList();
Assert.AreEqual(expected2.Count, result2.Count);
for (int i = 0; i < expected2.Count; i++)
Expand Down

0 comments on commit a40daeb

Please sign in to comment.