Normalize scrubbed-to-empty text to emptyString
Closed
SI
4mo ago+30+30+01234567890123456789-4-4-0123456789
Normalize scrubbed-to-empty text to emptyString
The emptyString sentinel was only applied to the raw root string, so text that became empty during scrubbing (eg ScrubLines removing every line) or an empty converted stream bypassed it and reached the comparison layer empty — written as an empty snapshot or handed to a registered string comparer that assumes non-empty input (eg Verify.DiffPlex).
Apply the sentinel after scrubbing in Scrub(), the single point all text targets pass through (root string, appenders, converted targets), and route the root string through Scrub() too.
NestedTarget#03 updated: an empty converted stream now renders emptyString instead of an empty file.