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

Make DisplayName property settable on [TestMethod] #4721

Closed
Evangelink opened this issue Jan 19, 2025 · 2 comments
Closed

Make DisplayName property settable on [TestMethod] #4721

Evangelink opened this issue Jan 19, 2025 · 2 comments

Comments

@Evangelink
Copy link
Member

Evangelink commented Jan 19, 2025

Currently, to change the display name of a test method, you need to use the corresponding ctor and the related property is readonly. I think we could make it settable (init would be best if that's working for attributes).

This can improve readability and reduces the migration effort when moving from xUnit.

@Youssef1313
Copy link
Member

Youssef1313 commented Jan 19, 2025

Is the intent to deprecate/remove the ctor in the future?

@Evangelink
Copy link
Member Author

As discussed offline, we won't implement this.

@Evangelink Evangelink closed this as not planned Won't fix, can't repro, duplicate, stale Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants