public async Task GetMangaUserUpdates_MonsterId_ShouldParseMonsterUserUpdates() { MangaUserUpdates monster = await jikan.GetMangaUserUpdates(1); var firstUpdate = monster.Updates.First(); Assert.Equal(75, monster.Updates.Count); Assert.True(DateTime.Now >= firstUpdate.Date.Value); Assert.True(!firstUpdate.ChaptersTotal.HasValue || firstUpdate.ChaptersTotal == 162); }
public async Task GetMangaUserUpdates_MonsterId_ShouldParseMonsterUserUpdates() { // When var monster = await _jikan.GetMangaUserUpdates(1); // Then var firstUpdate = monster.Updates.First(); using (new AssertionScope()) { monster.Updates.Should().HaveCount(75); firstUpdate.Date.Value.Should().BeBefore(DateTime.Now); firstUpdate.ChaptersTotal.Should().Be(162); } }