public void When_mapping_thumbnails_Then_empty_video_should_not_error(YouTubeObjectsMapperProfile youTubeObjectsMapperProfile) { var video = new Video(); var thumbnails = youTubeObjectsMapperProfile.MapThumbnails(video); thumbnails.Should().BeEmpty(); }
public void When_mapping_thumbnails_Then_populating_some_should_map_all_available_thumbnails(YouTubeObjectsMapperProfile youTubeObjectsMapperProfile) { var video = new Video { Snippet = new VideoSnippet { Thumbnails = new ThumbnailDetails { High = new Thumbnail(), Standard = new Thumbnail() } } }; var thumbnails = youTubeObjectsMapperProfile.MapThumbnails(video); thumbnails.Count.Should().Be(2); }