Exemplo n.º 1
0
        public void Test()
        {
            using (var sw = new StringWriter())
            {
                Console.SetOut(sw);
                String   aClass       = "Class name";
                int      aGrade       = 90;
                int      creditHours  = 3;
                String   aName        = "Name";
                DateTime aDate        = new DateTime(2021, 1, 31);
                int      pointsEarned = 90;
                int      maxPoints    = 100;
                int      gradeWeight  = 10;
                Guid     guid         = Guid.NewGuid();

                USurvive.Grade grade = new USurvive.Grade(aClass, aGrade, creditHours, aName, aDate, pointsEarned, maxPoints, gradeWeight, guid);


                Assert.IsTrue(grade.Name.Equals(aName));
            }
        }
Exemplo n.º 2
0
 public void setGrade(Grade grade)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 3
0
 public void AddGrade(Grade grade)
 {
     this.grades.Add(grade);
 }