diff --git a/Epub/KoeBook.Epub/Services/ScrapingAozoraService.cs b/Epub/KoeBook.Epub/Services/ScrapingAozoraService.cs index 7ca480c..2f4009d 100644 --- a/Epub/KoeBook.Epub/Services/ScrapingAozoraService.cs +++ b/Epub/KoeBook.Epub/Services/ScrapingAozoraService.cs @@ -456,14 +456,14 @@ private static string GetCardUrl(string url) private SplittedLineBuilder ScriptLineLineBuilder = new SplittedLineBuilder(); - + /// /// ある要素のChildrenに応じた処理を行います。 /// /// 処理を行う要素 internal void ProcessChildren(IElement element) { - + } diff --git a/KoeBook.Test/Epub/ScrapingAozoraServiceTest.cs b/KoeBook.Test/Epub/ScrapingAozoraServiceTest.cs index 86ef0e1..ebdc545 100644 --- a/KoeBook.Test/Epub/ScrapingAozoraServiceTest.cs +++ b/KoeBook.Test/Epub/ScrapingAozoraServiceTest.cs @@ -21,7 +21,7 @@ public static object[][] ProcessChildrenTestCases() (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("", "", "") }] }] }] }, []), + (@"[#改丁]", EmptySingleParagraph, [], new EpubDocument("", "", "", Guid.NewGuid()) { Chapters = [new Chapter() { Sections = [new Section("") { Elements = [new Paragraph() { Text = "[#改丁]", ScriptLine = new Core.Models.ScriptLine("", "", "") }] }] }] }, []), ]; for (int i = 0; i < patterns.Length; i++) @@ -67,7 +67,7 @@ public async void ProcessChildrenTest(string html, EpubDocument initial, EpubDoc Assert.Equal(expectedSection.Title, actualSection.Title); foreach ((var expectedElement, var actualElement) in expectedSection.Elements.Zip(actualSection.Elements)) { - switch (expectedElement, actualElement) + switch (expectedElement, actualElement) { case (Paragraph expectedParagraph, Paragraph actualParagraph): Assert.Equal(expectedParagraph.ClassName, actualParagraph.ClassName);