Example #1
0
 public void TestPupilsOrderAfterSortDescByAverage()
 {
     Catalog catalog = new Catalog();
     AddRecords(catalog);
     catalog.SortNames();
     catalog.SortDescendentGeneralAverage();
     Assert.AreEqual(true, catalog.CheckPupilName(0, "John Smith"));
     Assert.AreEqual(true, catalog.CheckPupilName(3, "Sarah Parker"));
     Assert.AreEqual(true, catalog.CheckPupilName(4, "Tom Miller"));
 }
Example #2
0
 public void TestSortForPupilsWithSortSystem()
 {
     Catalog catalog = new Catalog();
     AddRecords(catalog);
     Assert.AreEqual(true, catalog.CheckPupilName(0, "John Smith"));
     catalog.SortNames();
     Assert.AreEqual(true, catalog.CheckPupilName(0, "Edward Hall"));
 }
Example #3
0
 public void TestOrderByForPupilsWithOrderBySystem()
 {
     Catalog catalog = new Catalog();
     AddRecords(catalog);
     Assert.AreEqual(true, catalog.CheckPupilName(0, "John Smith"));
     catalog.OrderByName();
     Assert.AreEqual(true, catalog.CheckPupilName(0, "Edward Hall"));
 }