private GradeStatistics Statistics(GradeBook book) { book.AddGrade(80f); book.AddGrade(100); book.AddGrade(90); return(book.ComputerStatistics()); }
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); }
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); }