예제 #1
0
        public void StudentTestGet()
        {
            _markService.Setup(a => a.GetAllMarks(person)).Returns(_marks);
            string resultStudent = _student.CheckMark(person);

            _markService.Verify(a => a.GetAllMarks(person), Times.Once);
            Assert.AreEqual("Great job", resultStudent);
        }
예제 #2
0
 public void StudentGetAllMarksTest_3()
 {
     Assert.AreEqual(_student3.CheckMark(), "Bad job");
 }
예제 #3
0
 public void StudentGetAllMarksTest_2()
 {
     Assert.AreEqual(_student2.CheckMark(), "Great job");
 }