public async Task GetMangaNews_MonsterId_ShouldParseMonsterNews() { MangaNews monster = await jikan.GetMangaNews(1); Assert.Equal(11, monster.News.Count); Assert.Contains("Xinil", monster.News.Select(x => x.Author)); }
public void ShouldParseMonsterNews() { MangaNews monster = Task.Run(() => jikan.GetMangaNews(1)).Result; Assert.Equal(11, monster.News.Count); Assert.Contains("Xinil", monster.News.Select(x => x.Author)); }
public async Task GetMangaNews_MonsterId_ShouldParseMonsterNews() { // When var monster = await _jikan.GetMangaNews(1); // Then using (new AssertionScope()) { monster.News.Should().HaveCount(11); monster.News.Select(x => x.Author).Should().Contain("Xinil"); } }