Skip to content

Fix test helper method override assertions for arbitrary parameters#38633

Open
JoasE wants to merge 3 commits into
dotnet:mainfrom
JoasE:fix/AssertAllMethodsOverridden
Open

Fix test helper method override assertions for arbitrary parameters#38633
JoasE wants to merge 3 commits into
dotnet:mainfrom
JoasE:fix/AssertAllMethodsOverridden

Conversation

@JoasE

@JoasE JoasE commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 15, 2026 17:50
@JoasE JoasE requested a review from a team as a code owner July 15, 2026 17:50
@AndriySvyryd AndriySvyryd enabled auto-merge (squash) July 15, 2026 17:51

Copilot AI left a comment

Copy link
Copy Markdown

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 updates the AssertAllMethodsOverridden test helper to generate missing-override stubs for test methods with arbitrary parameters (instead of only supporting the legacy bool async pattern), improving the usefulness of the failure output across more test shapes.

Changes:

  • Generate parameter and argument lists dynamically from reflected method parameters.
  • Remove special-casing that previously skipped methods with parameters other than a single bool async.

Comment thread test/EFCore.Specification.Tests/TestUtilities/TestHelpers.cs Outdated
@AndriySvyryd AndriySvyryd disabled auto-merge July 15, 2026 17:55
Copilot AI review requested due to automatic review settings July 15, 2026 18:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread test/EFCore.Specification.Tests/TestUtilities/TestHelpers.cs
Copilot AI review requested due to automatic review settings July 15, 2026 18:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@JoasE JoasE requested a review from AndriySvyryd July 15, 2026 18:40
@AndriySvyryd AndriySvyryd enabled auto-merge (squash) July 15, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants