예제 #1
0
        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));
        }
예제 #2
0
        public void AllByNameDesTest()
        {
            var students = allStudents;

            CollectionAssert.AreEqual(students, LINQ_queries.GetResults(LINQ_queries.Criteria.ByName, descending: true));
        }
예제 #3
0
        public void PartByNameTest()
        {
            var students = allStudents.Take(5).ToList();

            CollectionAssert.AreEqual(students, LINQ_queries.GetResults(LINQ_queries.Criteria.ByName, 5));
        }