Skip to content

Fix assertion in UpdateAllReinstall_WithPackageReferenceProject_WarnsAsync - #7425

Merged
nkolev92 merged 3 commits into
devfrom
copilot/update-expected-message
Jun 1, 2026
Merged

nkolev92 merged 3 commits into
devfrom
copilot/update-expected-message

Conversation

Copilot AI commented May 28, 2026 •

Copy link
Copy Markdown
Contributor

Bug

Fixes: https://github.com/NuGet/Client.Engineering/issues/3800

Description

This PR fixes the failing Apex test:

NuGet.Tests.Apex.NuGetConsoleTestCase.UpdateAllReinstall_WithPackageReferenceProject_WarnsAsync (NetStandardClassLib,True)

The expected warning message in the test was out of sync with actual PMC output.
Updated the assertion string to match actual formatting:

  • -Reinstall is quoted as `-Reinstall`
  • project name is wrapped as `TestProject'

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

Copilot AI changed the title [WIP] Update expectedMessage in Apex test case for UpdateAllReinstall Fix Apex test expected message for Update-Package -Reinstall warning on PackageReference projects May 28, 2026
Copilot AI requested a review from nkolev92 May 28, 2026 21:07
Copilot AI changed the title Fix Apex test expected message for Update-Package -Reinstall warning on PackageReference projects Clarify PR template to preserve required sections May 29, 2026
@nkolev92

Copy link
Copy Markdown
Member

The test passed.

@nkolev92
nkolev92 marked this pull request as ready for review May 29, 2026 18:11
@nkolev92
nkolev92 requested a review from a team as a code owner May 29, 2026 18:11
@nkolev92
nkolev92 requested a review from Nigusu-Allehu May 29, 2026 18:11
@nkolev92 nkolev92 changed the title Clarify PR template to preserve required sections Fix assertion in UpdateAllReinstall_WithPackageReferenceProject_WarnsAsync May 29, 2026
@nkolev92
nkolev92 enabled auto-merge (squash) May 29, 2026 18:13
@nkolev92
nkolev92 merged commit b608111 into dev Jun 1, 2026
19 checks passed
@nkolev92
nkolev92 deleted the copilot/update-expected-message branch June 1, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants