Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Test]
- public void JoinToCourse_ShouldAddStudentToCourseSuccessfully_WitoutThrowException()
- {
- //Arrange
- Mock<IStudent> mockedStudent = new Mock<IStudent>();
- Mock<ICourse> mockedCourse = new Mock<ICourse>();
- //Act
- mockedCourse.Object.JoinToCourse(mockedStudent.Object);
- //Assert
- mockedCourse.Verify(x => x.JoinToCourse(It.IsAny<IStudent>()), Times.Exactly(1));
- }
Advertisement
Add Comment
Please, Sign In to add comment