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 TestInitialize method over constructor #2373

Closed
Evangelink opened this issue Feb 19, 2024 · 0 comments · Fixed by #2580
Closed

Prefer TestInitialize method over constructor #2373

Evangelink opened this issue Feb 19, 2024 · 0 comments · Fixed by #2580

Comments

@Evangelink
Copy link
Member

Evangelink commented Feb 19, 2024

Summary

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

This rule flags any constructor of a class marked with [TestClass] (or descendant) and suggest to use TestInitialize method instead.

AB#1986695

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