Example #1
0
 private GradeStatistics Statistics(GradeBook book)
 {
     book.AddGrade(80f);
     book.AddGrade(100);
     book.AddGrade(90);
     return(book.ComputerStatistics());
 }
Example #2
0
        public void TestDescription(int a, int b, int c, string d)
        {
            GradeBook book1 = new GradeBook();

            book1.AddGrade(a);
            book1.AddGrade(b);
            book1.AddGrade(c);

            GradeStatistics stats = book1.ComputerStatistics();

            Assert.AreEqual(stats.Descrition, d);
        }
Example #3
0
        public void TestLetter(int a, int b, int c, string d)
        {
            GradeBook book1 = new GradeBook();

            book1.AddGrade(a);
            book1.AddGrade(b);
            book1.AddGrade(c);

            GradeStatistics stats = book1.ComputerStatistics();

            Assert.AreEqual(stats.LetterGrade, d);
        }