public void CalculatesHighestGrade() { GradeBook book = new GradeBook(); book.AddGrade(100f); book.AddGrade(88f); GradeStatistics stats = book.ComputerStatistics(); Assert.AreEqual(100f, stats.HighestGrade); }
public void ComputesLowestGrade() { GradeBook book = new GradeBook(); book.AddGrade(10); book.AddGrade(90); GradeStatistics result = book.ComputerStatistics(); Assert.AreEqual(10, result.LowestGrade); }
public void ComputesAveregeGrade() { GradeBook book = new GradeBook(); book.AddGrade(91); book.AddGrade(89.5f); book.AddGrade(75); GradeStatistics result = book.ComputerStatistics(); Assert.AreEqual(85.16, result.AverageGrade, 0.01); }