public async Task Test_SearchResultObjectJsonReader_Person_ReadObject_From_Stream_Incomplete_5() { var jsonReader = new SearchResultObjectJsonReader(); using (var stream = TYPE_PERSON_JSON_INCOMPLETE_5.ToStream()) { var traktSearchResultItem = await jsonReader.ReadObjectAsync(stream); traktSearchResultItem.Should().NotBeNull(); traktSearchResultItem.Type.Should().BeNull(); traktSearchResultItem.Score.Should().Be(46.29501f); traktSearchResultItem.Person.Should().BeNull(); traktSearchResultItem.Movie.Should().BeNull(); traktSearchResultItem.Show.Should().BeNull(); traktSearchResultItem.Episode.Should().BeNull(); traktSearchResultItem.List.Should().BeNull(); } }
public async Task Test_ListItemObjectJsonReader_Person_ReadObject_From_Stream_Incomplete_5() { var jsonReader = new ListItemObjectJsonReader(); using (var stream = TYPE_PERSON_JSON_INCOMPLETE_5.ToStream()) { var traktListItem = await jsonReader.ReadObjectAsync(stream); traktListItem.Should().NotBeNull(); traktListItem.Rank.Should().Be("1"); traktListItem.ListedAt.Should().BeNull(); traktListItem.Type.Should().BeNull(); traktListItem.Person.Should().BeNull(); traktListItem.Movie.Should().BeNull(); traktListItem.Show.Should().BeNull(); traktListItem.Season.Should().BeNull(); traktListItem.Episode.Should().BeNull(); } }