public async Task GetAnimeUserUpdates_BebopId_ShouldParseCowboyBebopUserUpdates() { AnimeUserUpdates bebop = await _jikan.GetAnimeUserUpdates(1); var firstUpdate = bebop.Updates.First(); Assert.Equal(75, bebop.Updates.Count); Assert.True(DateTime.Now >= firstUpdate.Date.Value); Assert.True(!firstUpdate.EpisodesTotal.HasValue || firstUpdate.EpisodesTotal == 26); }
public async Task GetAnimeUserUpdates_BebopId_ShouldParseCowboyBebopUserUpdates() { // When var bebop = await _jikan.GetAnimeUserUpdates(1); // Then var firstUpdate = bebop.Updates.First(); using (new AssertionScope()) { bebop.Updates.Should().HaveCount(75); firstUpdate.Date.Value.Should().BeBefore(DateTime.Now); } }