public async Task GetAnimeNews_BebopId_ShouldParseCowboyBebopNews() { AnimeNews bebop = await _jikan.GetAnimeNews(1); Assert.Equal(7, bebop.News.Count); Assert.Contains("Snow", bebop.News.Select(x => x.Author)); }
public void ShouldParseCowboyBebopNews() { AnimeNews bebop = Task.Run(() => jikan.GetAnimeNews(1)).Result; Assert.Equal(6, bebop.News.Count); Assert.Contains("Snow", bebop.News.Select(x => x.Author)); }
public async Task GetAnimeNews_BebopId_ShouldParseCowboyBebopNews() { // When var bebop = await _jikan.GetAnimeNews(1); // Then using (new AssertionScope()) { bebop.News.Should().HaveCount(7); bebop.News.Select(x => x.Author).Should().Contain("Snow"); } }