public void TeacherGetAllMarks_6() { int[] exp = ((Student)_student3).marks; _markService.Setup(a => a.GetAllMarks(_student3)).Returns(exp); int[] currentresult = _teacher.GetAllMarks(_student3); _markService.Verify(a => a.GetAllMarks(_student3), Times.Once); Assert.AreEqual(currentresult, ((Student)_student3).marks); }