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));
        }
Beispiel #2
0
        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));
        }
Beispiel #3
0
        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");
            }
        }