public async Task GetMagazine_BigComicOriginalId_ShouldParseBigComicOriginal() { Magazine magazine = await jikan.GetMagazine(1); Assert.NotNull(magazine); Assert.Equal("Big Comic Original", magazine.Metadata.Name); Assert.Equal(1, magazine.Metadata.MalId); Assert.Equal(1, magazine.MalId); Assert.Equal("Monster", magazine.Manga.First().Title); Assert.Contains("Pluto", magazine.Manga.Select(x => x.Title)); }
public void ShouldParseBigComicOriginal() { Magazine magazine = Task.Run(() => jikan.GetMagazine(1)).Result; Assert.NotNull(magazine); Assert.Equal("Big Comic Original", magazine.Metadata.Name); Assert.Equal(1, magazine.Metadata.MalId); Assert.Equal(1, magazine.MalId); Assert.Equal("Monster", magazine.Manga.First().Title); Assert.Contains("Pluto", magazine.Manga.Select(x => x.Title)); }
public async Task GetMagazine_BigComicOriginalId_ShouldParseBigComicOriginal() { // When var magazine = await _jikan.GetMagazine(1); // Then using (new AssertionScope()) { magazine.Should().NotBeNull(); magazine.Metadata.Name.Should().Be("Big Comic Original"); magazine.Metadata.MalId.Should().Be(1); magazine.MalId.Should().Be(1); magazine.Manga.First().Title.Should().Be("Monster"); magazine.Manga.Select(x => x.Title).Should().Contain("Pluto"); } }