Fix chunk boundary scrubber bugs and test adapter defects#1779
Merged
SimonCropp merged 3 commits intoJul 8, 2026
Conversation
Scrubbers (Verify core): - UserMachineScrubber: fix IndexOutOfRangeException when a match ends exactly on a chunk boundary with a following chunk (read the trailing char via the builder indexer instead of chunkSpan[neededFromCurrent]) - UserMachineScrubber, GuidScrubber, DirectoryReplacements: roll the carryover forward across chunks so a token spanning three or more chunks (with a middle chunk shorter than the token) is no longer silently left unscrubbed - DateFormatLengthCalculator: 'K' contributes 0 to the minimum length (it can render as "", "Z" or "+11:00"), so round-trip/"o" formats now scrub the Z and offset-less forms instead of only the offset form - LinesScrubber.ReplaceLines: guard the trailing-newline trim on the rebuilt builder length, not the original string length, fixing an ArgumentOutOfRangeException when every line is replaced with null Test-framework adapters: - MSTest Verifier: only apply TestData parameters when their count matches the method parameter count (matches XunitV3; params-array DataRows no longer break parameterized snapshot naming) - MSTest Verifier_Archive: forward the dropped archiveExtension in the VerifyZip(Stream) overload - MSTest TestExecutionContext: resolve Method lazily so the method scan runs only when a verifier is built - MSTest source generator: require an attribute list in the syntax predicate so the uncached CreateSyntaxProvider transform no longer runs semantic work for every class on every keystroke - NUnit VerifyBase_Tuple: pass sourceFile so snapshots resolve to the test's path rather than the package build path - NUnit VerifyBase_Stream: use settings ?? this.settings in the Task<T> and ValueTask<T> stream overloads so instance settings are honored Add repro tests for the scrubber fixes.
This was referenced Jul 9, 2026
This was referenced Jul 9, 2026
This was referenced Jul 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.