diff --git a/NAPS2.Sdk.Tests/ContextualTests.cs b/NAPS2.Sdk.Tests/ContextualTests.cs index c22d63b09d..783cbc6ddb 100644 --- a/NAPS2.Sdk.Tests/ContextualTests.cs +++ b/NAPS2.Sdk.Tests/ContextualTests.cs @@ -91,9 +91,11 @@ public void SetUpFakeOcr(Dictionary ocrTextByImage = null, OcrResult CreateOcrResult(string text) { - var list = ImmutableList.Create( - new OcrResultElement(text, ocrParams.LanguageCode!, false, - (10, 10, 10, 10), 0, 10, ImmutableList.Empty)); + var word = new OcrResultElement(text, ocrParams.LanguageCode!, false, + (10, 10, 10, 10), 20, 10, ImmutableList.Empty); + var line = new OcrResultElement(text, ocrParams.LanguageCode!, false, + (10, 10, 10, 10), 20, 10, ImmutableList.Create(word)); + var list = ImmutableList.Create(line); return new((0, 0, 100, 100), list, list); }