Skip to content

Commit

Permalink
フォーマット
Browse files Browse the repository at this point in the history
  • Loading branch information
TakenPt committed Apr 11, 2024
1 parent 3af4c3d commit a8288d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Epub/KoeBook.Epub/Services/ScrapingAozoraService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -456,14 +456,14 @@ private static string GetCardUrl(string url)
private SplittedLineBuilder ScriptLineLineBuilder = new SplittedLineBuilder();



/// <summary>
/// ある要素のChildrenに応じた処理を行います。
/// </summary>
/// <param name="element">処理を行う要素</param>
internal void ProcessChildren(IElement element)
{

}


Expand Down
4 changes: 2 additions & 2 deletions KoeBook.Test/Epub/ScrapingAozoraServiceTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static object[][] ProcessChildrenTestCases()
(string, EpubDocument, CssClass[], EpubDocument, CssClass[])[] patterns = [
// レイアウト
// 1.1 改丁
(@"<span class=""notes"">[#改丁]</span>", EmptySingleParagraph, [], new EpubDocument("", "", "", Guid.NewGuid()) { Chapters = [new Chapter() { Sections = [new Section("") { Elements = [new Paragraph() { Text = "[#改丁]", ScriptLine = new Core.Models.ScriptLine("", "", "") }] }] }] }, []),
(@"<span class=""notes"">[#改丁]</span>", 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++)
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit a8288d6

Please sign in to comment.