Exemplo n.º 1
0
 public void TestNumberOfSubjectsByPupilAfterSort()
 {
     Catalog catalog = new Catalog();
     AddRecords(catalog);
     catalog.SortNames();
     Assert.AreEqual(true, catalog.CheckPupilSubjectsCount(1, 3));//"John Smith" => 3
 }
Exemplo n.º 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"));
 }
Exemplo n.º 3
0
 public void TestNumberOfNotesBySubjectAfterSort()
 {
     Catalog catalog = new Catalog();
     AddRecords(catalog);
     catalog.SortNames();
     Assert.AreEqual(true, catalog.CheckPupilSubjectNotesCount(1, "Mathematics", 4));//"John Smith" => 4
     Assert.AreEqual(true, catalog.CheckPupilSubjectNotesCount(1, "Literature", 3));//"John Smith" => 3
 }
Exemplo n.º 4
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"));
 }