-
Notifications
You must be signed in to change notification settings - Fork 340
Add letter number among valid identifiers in class name #13868
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
Add letter number among valid identifiers in class name #13868
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any possibility to backport to 17.12.1 or shall we wait 17.13?
...Microsoft.TestPlatform.AdapterUtilities/ManagedNameUtilities/ManagedNameHelper.Reflection.cs
Outdated
Show resolved
Hide resolved
...ft.TestPlatform.AdapterUtilities.UnitTests/ManagedNameUtilities/ManagedNameGeneratorTests.cs
Outdated
Show resolved
Hide resolved
test/Microsoft.TestPlatform.AdapterUtilities.UnitTests/TestClasses.cs
Outdated
Show resolved
Hide resolved
…es/ManagedNameHelper.Reflection.cs Co-authored-by: Amaury Levé <amaury.leve@gmail.com>
…sses.cs Co-authored-by: Amaury Levé <amaury.leve@gmail.com>
…NameUtilities/ManagedNameGeneratorTests.cs Co-authored-by: Amaury Levé <amaury.leve@gmail.com>
Linked issue mentions that this is not functional issue, it just impacts the view. Do you have a reason why backporting would be worth it? |
The link wasn't opening for me (DNS issue) so I didn't see this was only a "view" issue. Thanks for the comment, please disregard my request/suggestion. |
Description
IsLetterOrDigit is not considering LetterNumbers to be a digit (as defined here in remarks: https://learn.microsoft.com/en-us/dotnet/api/system.char.isletterordigit?view=net-9.0 )
But spec considers them as valid, this mismatch was causing the identifier to be wrapped in
'
.Related issue
https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2285943