Exemplo n.º 1
0
        private static GradeBook InitializeGradeBook()
        {
            GradeBook book = new ThrowAwayGradeBook();

            book.AddGrade(90);
            book.AddGrade(0);
            return(book);
        }
Exemplo n.º 2
0
        public void ComputesHighestGrade()
        {
            GradeBook book = new ThrowAwayGradeBook();

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

            GradeStatistics result = book.ComputeStatistics();

            Assert.AreEqual(90, result.HighestGrade);
        }