public void type_comment_type_get_list_returns_comment_types_in_list() { List <CommentType> newTypeList = new List <CommentType>(); Mock <IBusinessEngineFactory> mockBusinessEngineFactory = new Mock <IBusinessEngineFactory>(); mockBusinessEngineFactory.Setup(mock => mock.GetBusinessEngine <ICommentTypeBusinessEngine>().GetTypes()).Returns(newTypeList); TypeService service = new TypeService(mockBusinessEngineFactory.Object); List <CommentType> lookup_ret_val = service.GetCommentTypeList(); Assert.IsTrue(lookup_ret_val is List <CommentType>); }