public async Task GetMangaUserUpdates_MonsterIdSecondPage_ShouldParseMonsterUserUpdatesPaged() { MangaUserUpdates monster = await jikan.GetMangaUserUpdates(1, 2); var firstUpdate = monster.Updates.First(); Assert.Equal(75, monster.Updates.Count); Assert.True(!firstUpdate.ChaptersTotal.HasValue || firstUpdate.ChaptersTotal == 162); }
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); }