예제 #1
0
        public void TestWithInvalidStudentThrowsException()
        {
            var tracker = new GraduationTracker();

            var graduated   = new List <Tuple <bool, STANDING> >();
            var studentMock = StudentMock.GetInvalidStudentMock();

            foreach (var student in studentMock)
            {
                graduated.Add(tracker.HasGraduated(DiplomaMock.GetDiplomaMock(), student));
            }
        }
예제 #2
0
        public void TestHasCredits()
        {
            var tracker = new GraduationTracker();

            var graduated = new List <Tuple <bool, STANDING> >();

            foreach (var student in StudentMock.GetStudentMock())
            {
                graduated.Add(tracker.HasGraduated(DiplomaMock.GetDiplomaMock(), student));
            }

            Assert.IsFalse(!graduated.Where(x => x.Item1 == false).Any());
        }