public async Task Test_SyncRecommendationsPostResponseNotFoundGroupObjectJsonReader_ReadObject_From_JsonReader_Complete() { var traktJsonReader = new SyncRecommendationsPostResponseNotFoundGroupObjectJsonReader(); using var reader = new StringReader(JSON_COMPLETE); using var jsonReader = new JsonTextReader(reader); ITraktSyncRecommendationsPostResponseNotFoundGroup traktSyncRecommendationsPostResponseNotFoundGroup = await traktJsonReader.ReadObjectAsync(jsonReader); traktSyncRecommendationsPostResponseNotFoundGroup.Should().NotBeNull(); traktSyncRecommendationsPostResponseNotFoundGroup.Movies.Should().NotBeNull().And.HaveCount(1); ITraktSyncRecommendationsPostMovie[] notFoundMovies = traktSyncRecommendationsPostResponseNotFoundGroup.Movies.ToArray(); notFoundMovies[0].Should().NotBeNull(); notFoundMovies[0].Ids.Should().NotBeNull(); notFoundMovies[0].Ids.Trakt.Should().Be(0U); notFoundMovies[0].Ids.Slug.Should().BeNull(); notFoundMovies[0].Ids.Imdb.Should().Be("tt0000111"); notFoundMovies[0].Ids.Tmdb.Should().BeNull(); traktSyncRecommendationsPostResponseNotFoundGroup.Shows.Should().NotBeNull().And.HaveCount(1); ITraktSyncRecommendationsPostShow[] notFoundShows = traktSyncRecommendationsPostResponseNotFoundGroup.Shows.ToArray(); notFoundShows[0].Should().NotBeNull(); notFoundShows[0].Ids.Should().NotBeNull(); notFoundShows[0].Ids.Trakt.Should().Be(0U); notFoundShows[0].Ids.Slug.Should().BeNull(); notFoundShows[0].Ids.Imdb.Should().Be("tt0000222"); notFoundShows[0].Ids.Tvdb.Should().BeNull(); notFoundShows[0].Ids.Tmdb.Should().BeNull(); }
public async Task Test_SyncRecommendationsPostResponseNotFoundGroupObjectJsonReader_ReadObject_From_Json_String_Empty() { var traktJsonReader = new SyncRecommendationsPostResponseNotFoundGroupObjectJsonReader(); ITraktSyncRecommendationsPostResponseNotFoundGroup traktSyncRecommendationsPostResponseNotFoundGroup = await traktJsonReader.ReadObjectAsync(string.Empty); traktSyncRecommendationsPostResponseNotFoundGroup.Should().BeNull(); }