Example #1
0
        public void AddGradeTest()
        {
            int newGrade = 3;
            var grades   = new Grades(new int[] { 1, 2 });

            grades.AddGrade(newGrade);
            Assert.AreEqual(2, grades.GeneralAverage());
        }
Example #2
0
 public double GeneralAverage()
 {
     return(grades.GeneralAverage());
 }