public void ComputesLowestGrade() { GradeTracker book = new GradeTracker(); book.AddGrade(10); book.AddGrade(90); GradeStatistics result = book.ComputeStatistics(); Assert.AreEqual(10, result.LowestGrade); }
public void ComputesAverageGrade() { GradeTracker book = new GradeTracker(); book.AddGrade(91); book.AddGrade(89.5f); book.AddGrade(75); GradeStatistics result = book.ComputeStatistics(); Assert.AreEqual(85.16, result.AverageGrade, 0.01); }