Skip to content

Fix MSTEST0046: use Assert.MatchesRegex instead of StringAssert.Matches#15575

Merged
nohwnd merged 1 commit into
microsoft:mainfrom
nohwnd:fix-mstest0046
Mar 24, 2026
Merged

Fix MSTEST0046: use Assert.MatchesRegex instead of StringAssert.Matches#15575
nohwnd merged 1 commit into
microsoft:mainfrom
nohwnd:fix-mstest0046

Conversation

@nohwnd
Copy link
Copy Markdown
Member

@nohwnd nohwnd commented Mar 24, 2026

Closes #15574

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

Copilot AI review requested due to automatic review settings March 24, 2026 15:02
@nohwnd nohwnd added the 🚢 Ship it! Add to PRs where owner approves automated PR, but cannot approve because they "wrote it". label Mar 24, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates an HtmlLogger unit test to address MSTEST0046 by switching from StringAssert.Matches (with Regex) to Assert.MatchesRegex.

Changes:

  • Replaced StringAssert.Matches(..., new Regex(...)) with Assert.MatchesRegex(..., pattern, message) in HtmlLoggerTests.
  • Simplified the regex assertion by passing the pattern string directly.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🚢 Ship it! Add to PRs where owner approves automated PR, but cannot approve because they "wrote it".

Projects

None yet

Development

Successfully merging this pull request may close these issues.

main is failing

2 participants