public void AllByAssessmentTest() { var students = new List <Student> { allStudents[6], allStudents[7], allStudents[4], allStudents[5], allStudents[2], allStudents[3], allStudents[0], allStudents[1], allStudents[8], allStudents[9], }; CollectionAssert.AreEqual(students, LINQ_queries.GetResults(LINQ_queries.Criteria.ByAssessment)); }
public void AllByNameDesTest() { var students = allStudents; CollectionAssert.AreEqual(students, LINQ_queries.GetResults(LINQ_queries.Criteria.ByName, descending: true)); }
public void PartByNameTest() { var students = allStudents.Take(5).ToList(); CollectionAssert.AreEqual(students, LINQ_queries.GetResults(LINQ_queries.Criteria.ByName, 5)); }