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)); } }
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()); }