From f70c376c38d7ec4235d8e473ea32d05c1e4199da Mon Sep 17 00:00:00 2001 From: Michael Bisbjerg Date: Sat, 27 Mar 2021 18:08:05 +0100 Subject: [PATCH] Update to latest master --- TMDbLibTests/ClientTvShowTests.cs | 8 +++----- ...howGetTvShowWithEpisodeGroups.verified.txt | 20 +++++++++++++++++++ 2 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 TMDbLibTests/Verification/ClientTvShowTests.TestTvShowGetTvShowWithEpisodeGroups.verified.txt diff --git a/TMDbLibTests/ClientTvShowTests.cs b/TMDbLibTests/ClientTvShowTests.cs index aba1db3..f00fde7 100644 --- a/TMDbLibTests/ClientTvShowTests.cs +++ b/TMDbLibTests/ClientTvShowTests.cs @@ -179,13 +179,11 @@ namespace TMDbLibTests } [Fact] - public void TestTvShowGetTvShowWithEpisodeGroups() + public async Task TestTvShowGetTvShowWithEpisodeGroups() { - IgnoreMissingCSharp("production_countries / production_countries", "spoken_languages[array].english_name / english_name"); - IgnoreMissingJson(" / account_states", " / alternative_titles", " / changes", " / content_ratings", " / credits", " / external_ids", " / genre_ids", " / images", " / keywords", " / recommendations", " / reviews", " / similar", " / translations", " / videos", " / watch/providers", "episode_groups / id", "episode_groups.results[array] / groups", "last_episode_to_air / show_id"); + TvShow resp = await TMDbClient.GetTvShowAsync(IdHelper.Seinfeld, TvShowMethods.EpisodeGroups); - TvShow resp = Config.Client.GetTvShowAsync(IdHelper.Seinfeld, extraMethods: TvShowMethods.EpisodeGroups).Result; - Assert.True(resp.EpisodeGroups.Results.Count > 0); + await Verify(resp.EpisodeGroups); } [Fact] diff --git a/TMDbLibTests/Verification/ClientTvShowTests.TestTvShowGetTvShowWithEpisodeGroups.verified.txt b/TMDbLibTests/Verification/ClientTvShowTests.TestTvShowGetTvShowWithEpisodeGroups.verified.txt new file mode 100644 index 0000000..0710150 --- /dev/null +++ b/TMDbLibTests/Verification/ClientTvShowTests.TestTvShowGetTvShowWithEpisodeGroups.verified.txt @@ -0,0 +1,20 @@ +{ + results: [ + { + id: 5ad27f53c3a3683eed018672, + name: Production Order, + type: Production, + description: , + episode_count: 180, + group_count: 9 + }, + { + id: 5fdcb08b9f51af003d5ae2e8, + name: DVD Order, + type: DVD, + description: DVD release episode order, + episode_count: 180, + group_count: 9 + } + ] +} \ No newline at end of file