Пример #1
0
 public void computeLetterGrade()
 {
     Grades.GradeBook book = new Grades.GradeBook();
     book.AddGrade(78);
     book.AddGrade(99);
     book.AddGrade(1);
     Grades.Statistics result = book.ComputeStatistics();
     Assert.AreEqual("F", result.LetterGrade);
 }
Пример #2
0
 public void computesHighestGrade()
 {
     Grades.GradeBook book = new Grades.GradeBook();
     book.AddGrade(78);
     book.AddGrade(99);
     book.AddGrade(1);
     Grades.Statistics result = book.ComputeStatistics();
     Assert.AreEqual(99, result.GetHighestGrade());
 }
Пример #3
0
 public void computeAverageGrade()
 {
     Grades.GradeBook book = new Grades.GradeBook();
     book.AddGrade(78);
     book.AddGrade(99);
     book.AddGrade(1);
     Grades.Statistics result = book.ComputeStatistics();
     Assert.AreEqual(59.33, result.GetAverGrade(), 0.01);
 }