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);
        }
Ejemplo n.º 3
0
        public void ComputesLowestGrade()
        {
            GradeTracker book = new GradeTracker();

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

            GradeStatistics result = book.ComputeStatistics();

            Assert.AreEqual(10, result.LowestGrade);
        }
Ejemplo n.º 4
0
        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);
        }