Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefer constructor over TestInitialize method #2372

Closed
Evangelink opened this issue Feb 19, 2024 · 1 comment · Fixed by #2582
Closed

Prefer constructor over TestInitialize method #2372

Evangelink opened this issue Feb 19, 2024 · 1 comment · Fixed by #2582

Comments

@Evangelink
Copy link
Member

Evangelink commented Feb 19, 2024

Summary

Enabled by default: false
Default severity: info
Title: Prefer constructors over TestInitialize methods

This rule flags any void method marked with [TestInitialize] attribute and suggest to use a constructor instead.

AB#1986694

@Evangelink
Copy link
Member Author

Add exception for inits marked with [Timeout].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants