Skip to content

Commit 31da1ac

Browse files
Merge pull request #24 from KamiYomu/develop
include artists tests (#23)
2 parents a6d2015 + 6aa4be8 commit 31da1ac

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/KamiYomu.CrawlerAgents.Core.Tests/Builders/MangaBuilderTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public void Build_ShouldReturnFullyPopulatedManga()
6969
var altTitles = new Dictionary<string, string> { { "en", "Title &amp; One" }, { "jp", "タイトル" } };
7070
var altDescriptions = new Dictionary<string, string> { { "en", "Desc &lt;b&gt;bold&lt;/b&gt;" } };
7171
var authors = new[] { "Author &amp; A", "Author B" };
72+
var artists = new[] { "Artist &amp; A", "Artist B" };
7273
var tags = new[] { "Action", "Drama" };
7374
var links = new Dictionary<string, string> { { "site", "https://example.com" } };
7475
var coverUri = new Uri("https://example.com/cover.jpg");
@@ -80,6 +81,7 @@ public void Build_ShouldReturnFullyPopulatedManga()
8081
.WithDescription("A &lt;i&gt;great&lt;/i&gt; story")
8182
.WithAlternativeDescriptions(altDescriptions)
8283
.WithAuthors(authors)
84+
.WithArtists(artists)
8385
.WithTags(tags)
8486
.WithCoverUrl(coverUri)
8587
.WithLinks(links)
@@ -102,6 +104,8 @@ public void Build_ShouldReturnFullyPopulatedManga()
102104
Assert.Equal("Desc <b>bold</b>", manga.AlternativeDescriptions["en"]);
103105
Assert.Contains("Author & A", manga.Authors);
104106
Assert.Contains("Author B", manga.Authors);
107+
Assert.Contains("Artist & A", manga.Artists);
108+
Assert.Contains("Artist B", manga.Artists);
105109
Assert.Contains("Action", manga.Tags);
106110
Assert.Equal(coverUri, manga.CoverUrl);
107111
Assert.Equal(links, manga.Links);

0 commit comments

Comments
 (0)