LinqToNH Failing tests for Aggregate OrderBy

0 views
Skip to first unread message

Tuna Toksöz

unread,
Jun 29, 2008, 2:05:27 PM6/29/08
to rhino-t...@googlegroups.com
The following is a failing test. Descending is also at the attachment.
        [Test]
        public void AggregateAscendingOrderByClause()
        {
            var query = from c in nwnd.Customers
                        where c.Country == "Belgium"
                        orderby c.Orders.Count
                        select c;

            var ids = query.ToList();

            if (ids.Count > 1)
            {
                Assert.Less(ids[1].Orders.Count, ids[0].Orders.Count);
            }
        }

--
Tuna Toksöz

Typos included to enhance the reader's attention ...
nhlinq_orderbyaggregate.patch

Tuna Toksöz

unread,
Jun 29, 2008, 2:20:08 PM6/29/08
to rhino-t...@googlegroups.com
Sorry there were mistakes in the patch.
I also removed the RhinoMocks reference(which I accidentally added to the 2nd level cache patch) in the Tests project.
nhlinq_orderbyaggregate.patch
Reply all
Reply to author
Forward
0 new messages