public void FunctionReturnsSetOfStrings() { var context = new AWEntities(); var details = context.GetCustomersWithOrdersGreaterThan(10000).ToList(); Assert.AreNotEqual(0, details.Count()); System.Diagnostics.Debug.WriteLine("# customers: {0}", details.Count); //test to assure that context is not tracking anything after this query Assert.AreEqual(0, context.ObjectStateManager.GetObjectStateEntries(System.Data.EntityState.Unchanged).Count()); }