Skip to content

Add more tests for CA2007 rule for await using and await foreach cases - #55542

Open
DoctorKrolic wants to merge 1 commit into
dotnet:mainfrom
DoctorKrolic:better-CA2007-tests
Open

Add more tests for CA2007 rule for await using and await foreach cases#55542
DoctorKrolic wants to merge 1 commit into
dotnet:mainfrom
DoctorKrolic:better-CA2007-tests

Conversation

@DoctorKrolic

Copy link
Copy Markdown
Contributor

Addresses #55036 (comment)

The way to check for IAsyncEnumerable turned out to be incorrect since generics are involved, so had to fix that. Added a bunch more tests than asked in the initial feedback so now we have coverage even for such extreme cases like a ref struct implementing an IAsyncDisposable/IAsyncEnumerable<T>

CC @tannergooding I had a busy week so this is a bit later then I originally expected. Still kept the promise though)

@DoctorKrolic
DoctorKrolic requested a review from a team as a code owner July 30, 2026 17:49
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

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.

1 participant