Updated integration testing for English and Japanese. Fixed minor voice work updater issue. Updated to XUnitV3.

This commit is contained in:
2025-10-28 22:01:34 -04:00
parent 99c397b3bc
commit 6d090390b0
24 changed files with 1018 additions and 354 deletions

View File

@@ -7,13 +7,12 @@ public static class ScannerUtilities
{
public static List<string> GetStringListFromNodes(HtmlNode[] nodes)
{
return nodes
return [.. nodes
.Where(node => string.IsNullOrEmpty(node.InnerHtml) == false)
.Select(node => HttpUtility.HtmlDecode(node.InnerHtml))
.ToList();
.Select(node => HttpUtility.HtmlDecode(node.InnerHtml))];
}
public static string GetDecodedText(HtmlNode node)
public static string GetDecodedText(HtmlNode? node)
{
if (node == null)
return string.Empty;

View File

@@ -127,7 +127,7 @@ public abstract class VoiceWorksScanner(IHtmlLoader htmlLoader) : IVoiceWorksSca
return AgeRating.R18;
}
private static ScannedRating? GetScannedRating(HtmlNode starRatingNode)
private static ScannedRating? GetScannedRating(HtmlNode? starRatingNode)
{
if (starRatingNode == null)
return null;