public void ComputesAverageGrade() { GradeBook book = new GradeBook(); book.AddGrade(10); book.AddGrade(90); GradeSatistics stats = book.ComputeStatistics(); Assert.AreEqual(50, stats.AverageGrade); }
public void ComputesLowestGrade() { GradeBook book = new GradeBook(); book.AddGrade(10); book.AddGrade(90); GradeSatistics stats = book.ComputeStatistics(); Assert.AreEqual(10, stats.LowestGrade); }