Enhancement
LambdaRag.Markup (the most user-visible output module) has no direct unit tests. Existing coverage:
Markup/AnnotationFactoryPassTests.cs — exercises annotation construction, not docx output.
Markup/CommentFormattingTests.cs — exercises text-level comment formatting only.
tests/.../ReviewedDocxIdempotency.cs — verifies byte-stability but not correctness of comment / ins / del placement.
Goal: A focused OpenXmlMarkupServiceTests suite that loads a small fixture docx, applies a known annotation set, opens the output with OpenXml, and asserts:
Out of scope
- End-to-end pipeline tests (already covered in integration suite).
Enhancement
LambdaRag.Markup(the most user-visible output module) has no direct unit tests. Existing coverage:Markup/AnnotationFactoryPassTests.cs— exercises annotation construction, not docx output.Markup/CommentFormattingTests.cs— exercises text-level comment formatting only.tests/.../ReviewedDocxIdempotency.cs— verifies byte-stability but not correctness of comment / ins / del placement.Goal: A focused
OpenXmlMarkupServiceTestssuite that loads a small fixture docx, applies a known annotation set, opens the output with OpenXml, and asserts:Comment.Author,Comment.Initials,Comment.Dateset to expected (deterministic) values.CommentRangeStart/CommentRangeEndbrackets enclose the expected run text.InsertedRuntext matchesAnnotation.Replacement.DeletedRuntext matches the original span text (depends on [hardening] DeletedRun writes literal '[deleted]' instead of original span text #53).Out of scope