-
Notifications
You must be signed in to change notification settings - Fork 998
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
Utilize TypeName Parser API in ResXSerializationBinder #11312
Conversation
cc: @adamsitnik |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11312 +/- ##
===================================================
- Coverage 74.35035% 74.22294% -0.12742%
===================================================
Files 3019 3021 +2
Lines 626605 626146 -459
Branches 46604 46693 +89
===================================================
- Hits 465883 464744 -1139
- Misses 157321 158005 +684
+ Partials 3401 3397 -4
Flags with carried forward coverage won't be shown. Click here to find out more. |
typeName.Should().Be(typeName); | ||
} | ||
|
||
private class CustomTypeResolutionService : ITypeResolutionService |
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.
Consider giving this class a more descriptive name that would explain what is customization it has. I.e. this service is not only resolving the test types, but also tracks how they were resolved.
{ | ||
TypeName parsed = TypeName.Parse($"{typeof(Form).FullName}, {typeof(Form).Assembly.FullName}"); | ||
AssemblyNameInfo? assemblyNameInfo = parsed.AssemblyName; | ||
_formNoVersionFullyQualifiedName = $"{typeof(Form).FullName}, {new AssemblyNameInfo( |
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.
You only need this string in one test, consider initializing it when needed only.
Sent from my iPhoneOn May 6, 2024, at 7:00 PM, Loni Tra ***@***.***> wrote:
Merged #11312 into main.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
ResXSerializationBinder
where we had been manually picking apart the type name to redirect to/from .NET Framework type namesMicrosoft Reviewers: Open in CodeFlow