public void Mapper_ConverToPostCollection_should_return_posts_with_count_5_if_argument_has_count_5() { var postsDTO = new List <PostDTO>() { new PostDTO(), new PostDTO(), new PostDTO(), new PostDTO(), new PostDTO() }; var posts = PostMapper.ConvertToPostCollection(postsDTO); Assert.Equal(posts.Count, 5); }
public void Mapper_ConvertToPostCollection_should_throw_argument_null_exception_when_input_argument_is_null() { Assert.Throws <ArgumentNullException>(() => PostMapper.ConvertToPostCollection(null)); }