Пример #1
0
        public void ComputeLowestGrade()
        {
            GradeBook book = new GradeBook();

            book.AddGrade(10);
            book.AddGrade(90);

            GradeStatistics result = book.ComputeSatistics();

            Assert.AreEqual(10, result.LowestGrade);
        }
Пример #2
0
        public void ComputeAverageGrade()
        {
            GradeBook book = new GradeBook();

            book.AddGrade(91);
            book.AddGrade(89.5f);
            book.AddGrade(75);

            GradeStatistics result = book.ComputeSatistics();

            Assert.AreEqual(85.16, result.AverageGrade, 0.01);
        }