diff --git a/KoeBook.Test/Epub/ScrapingAozoraServiceTest.cs b/KoeBook.Test/Epub/ScrapingAozoraServiceTest.cs index ebdc545..23c40bb 100644 --- a/KoeBook.Test/Epub/ScrapingAozoraServiceTest.cs +++ b/KoeBook.Test/Epub/ScrapingAozoraServiceTest.cs @@ -3,6 +3,7 @@ using AngleSharp.Dom; using KoeBook.Epub.Models; using KoeBook.Epub.Services; +using KoeBook.Core.Models; namespace KoeBook.Test.Epub; @@ -19,9 +20,14 @@ public static object[][] ProcessChildrenTestCases() // CssClass[]: ProcessChildren実行後にあるべきScrapingAozoraService._document.CssClassesに追加したいCssClassを列挙する。 (string, EpubDocument, CssClass[], EpubDocument, CssClass[])[] patterns = [ - // レイアウト - // 1.1 改丁 - (@"[#改丁]", EmptySingleParagraph, [], new EpubDocument("", "", "", Guid.NewGuid()) { Chapters = [new Chapter() { Sections = [new Section("") { Elements = [new Paragraph() { Text = "[#改丁]", ScriptLine = new Core.Models.ScriptLine("", "", "") }] }] }] }, []), + // レイアウト1.1 改丁 + (@"[#改丁]
", EmptySingleParagraph, [], new EpubDocument("", "", "", Guid.NewGuid()) { Chapters = [new Chapter() { Sections = [new Section("") { Elements = [new Paragraph() { Text = "[#改丁]", ScriptLine = new ScriptLine("", "", "") }] }] }] }, []), + // レイアウト1.2 改ページ + (@"[#改ページ]
", EmptySingleParagraph, [], new EpubDocument("", "", "", Guid.NewGuid()) { Chapters = [new Chapter() { Sections = [new Section("") { Elements = [new Paragraph() { Text = "[#改ページ]", ScriptLine = new ScriptLine("", "", "") }] }] }] }, []), + // レイアウト1.3 改見開き + (@"[#改見開き]
", EmptySingleParagraph, [], new EpubDocument("", "", "", Guid.NewGuid()) { Chapters = [new Chapter() { Sections = [new Section("") { Elements = [new Paragraph() { Text = "[#改見開き]", ScriptLine = new ScriptLine("", "", "") }] }] }] }, []), + // レイアウト1.4 改段 + (@"[#改段]
", EmptySingleParagraph, [], new EpubDocument("", "", "", Guid.NewGuid()) { Chapters = [new Chapter() { Sections = [new Section("") { Elements = [new Paragraph() { Text = "[#改段]", ScriptLine = new ScriptLine("", "", "") }] }] }] }, []), ]; for (int i = 0; i < patterns.Length; i++)