public void OrdersTableDoesNotProvokeSyntaxError() { using (model2Entities context = new model2Entities()) { var customers = from c in context.customer select c; Assert.DoesNotThrow(delegate { customers.ToList().ForEach(c => c.order.Load()); }); } }