Skip to content

Conversation

@Youssef1313
Copy link
Member

@Youssef1313 Youssef1313 commented Feb 9, 2026

The static constructor of AcceptanceTestBase<T> is invoked for every generic argument, while the logic there is mostly static and needs to be invoked only once. Moving all static members to a base non-generic class reduces the number of times we call the static constructor, and also follows CA1000.

Copy link
Member

@Evangelink Evangelink left a comment

Choose a reason for hiding this comment

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

Ooooh I never paid attention it was suppressed!

@Evangelink Evangelink merged commit 28eada6 into main Feb 9, 2026
11 checks passed
@Evangelink Evangelink deleted the dev/ygerges/move-static branch February 9, 2026 12:48
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.

2 participants