Skip to content

Use ConditionalFact/ConditionalTheory ctor that passes type - #124791

Merged
akoeplinger merged 4 commits into
dotnet:mainfrom
akoeplinger:conditionalfact-typeof
Feb 25, 2026
Merged

akoeplinger merged 4 commits into
dotnet:mainfrom
akoeplinger:conditionalfact-typeof

Conversation

@akoeplinger

@akoeplinger akoeplinger commented Feb 24, 2026 •

Copy link
Copy Markdown
Member

Required for xunit v3 and the other ctor is marked obsolete as of dotnet/arcade#16537

Required for xunit v3 and the other ctor is marked obsolete as of https://github.com/dotnet/arcade
Copilot AI review requested due to automatic review settings February 24, 2026 12:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot wasn't able to review this pull request. There are 300 or more changed files, try reducing the number of files in this pull request and requesting a review from Copilot again.

@stephentoub

Copy link
Copy Markdown
Member

The only thing we can't do in the new system is ConditionalTheory with only a member name [..] It looks like there are relatively few in use

Pan to me looking at PR with 306 files changed...

@akoeplinger

Copy link
Copy Markdown
Member Author

Pan to me looking at PR with 306 files changed...

lol yeah. not sure if @agocke missed something but at least this was a relatively painless edit with copilot. only the generic cases are a little painful (last commit)...

@agocke

agocke commented Feb 24, 2026

Copy link
Copy Markdown
Member

Yeah I was expecting ~50 changes, clearly my query missed something

@agocke

agocke commented Feb 24, 2026

Copy link
Copy Markdown
Member

I would look into an alternative but @akoeplinger has already done the work (thanks!).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot wasn't able to review this pull request. There are 300 or more changed files, try reducing the number of files in this pull request and requesting a review from Copilot again.

@akoeplinger

Copy link
Copy Markdown
Member Author

yeah it seems to work, not sure how/if you want to review it though :)

@agocke

agocke commented Feb 25, 2026

Copy link
Copy Markdown
Member

I’ll look through it tonight, I don’t mind reviewing mechanical prs

Comment thread src/libraries/System.Security.Cryptography/tests/ShakeTestDriver.cs
Comment thread src/libraries/System.Security.Cryptography/tests/HmacTests.cs
This was hidden before because ConditionalFact just skipped the test in that case, but we now call this as part of the test itself in SmtpClientAuthTest.TestGssapiAuthentication().
Copy the try-catch from NegotiateAuthenticationPal.Unix.cs to fix it.
@akoeplinger
akoeplinger merged commit 77b5f2f into dotnet:main Feb 25, 2026
147 of 150 checks passed
@akoeplinger
akoeplinger deleted the conditionalfact-typeof branch February 25, 2026 13:52
iremyux pushed a commit to iremyux/dotnet-runtime that referenced this pull request Mar 2, 2026
…24791)

Required for xunit v3 and the other ctor is marked obsolete as of
dotnet/arcade#16537
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants