public async Task Test_SearchResultObjectJsonReader_Person_ReadObject_From_Stream_Incomplete_4() { var jsonReader = new SearchResultObjectJsonReader(); using (var stream = TYPE_PERSON_JSON_INCOMPLETE_4.ToStream()) { var traktSearchResultItem = await jsonReader.ReadObjectAsync(stream); traktSearchResultItem.Should().NotBeNull(); traktSearchResultItem.Type.Should().Be(TraktSearchResultType.Person); traktSearchResultItem.Score.Should().BeNull(); 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_4() { var jsonReader = new ListItemObjectJsonReader(); using (var stream = TYPE_PERSON_JSON_INCOMPLETE_4.ToStream()) { var traktListItem = await jsonReader.ReadObjectAsync(stream); traktListItem.Should().NotBeNull(); traktListItem.Rank.Should().Be("1"); traktListItem.ListedAt.Should().Be(DateTime.Parse("2014-09-01T09:10:11.000Z").ToUniversalTime()); traktListItem.Type.Should().Be(TraktListItemType.Person); traktListItem.Person.Should().BeNull(); traktListItem.Movie.Should().BeNull(); traktListItem.Show.Should().BeNull(); traktListItem.Season.Should().BeNull(); traktListItem.Episode.Should().BeNull(); } }