Skip to content

Cleanup ValidatableInfoResolverTests#66379

Merged
Youssef1313 merged 1 commit intomainfrom
dev/ygerges/cleanup-tests
Apr 22, 2026
Merged

Cleanup ValidatableInfoResolverTests#66379
Youssef1313 merged 1 commit intomainfrom
dev/ygerges/cleanup-tests

Conversation

@Youssef1313
Copy link
Copy Markdown
Member

The tests in this class used to set up a mock and asserts it, essentially testing zero production code and only asserts that the moq library works. They serve no value. So deleting them

The tests in this class used to set up a mock and asserts it, essentially testing zero production code and only asserts that the moq library works. They serve no value. So deleting them
Copilot AI review requested due to automatic review settings April 20, 2026 09:34
@github-actions github-actions Bot added the needs-area-label Used by the dotnet-issue-labeler to label those issues which couldn't be triaged automatically label Apr 20, 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

This PR removes several ValidatableInfoResolverTests that were only validating Moq setup behavior (rather than exercising production logic), leaving the remaining test that validates resolver-chain behavior through AddValidation / ValidationOptions.

Changes:

  • Deleted Moq-only tests for TryGetValidatableTypeInfo and TryGetValidatableParameterInfo.
  • Removed now-unused local test helper types that only supported the deleted tests.

@Youssef1313 Youssef1313 merged commit 40ff34f into main Apr 22, 2026
31 checks passed
@Youssef1313 Youssef1313 deleted the dev/ygerges/cleanup-tests branch April 22, 2026 02:42
@dotnet-policy-service dotnet-policy-service Bot added this to the 11.0-preview4 milestone Apr 22, 2026
@wtgodbe wtgodbe modified the milestones: 11.0-preview4, 11.0-preview5 Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-area-label Used by the dotnet-issue-labeler to label those issues which couldn't be triaged automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants