-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add test coverage for public API surface of TextDecorationCollectionConverter #9895
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
Conversation
|
@h3xds1nz here are a few things that I think we can do in this PR :
|
Probably you can open one issue for these issues you found in this and the MouseActionConverter class. |
9f8e6e2 to
d81434a
Compare
|
@dipeshmsft I've added multitude of other tests, what I do not like is that its dependent now on It doesn't hurt but it is no longer fully "unit" in this case. Not that it really matters, some test is better than no-test, right. #9778 guess it is time for this sad PR? 😀 |
|
Thanks @h3xds1nz for the quick resolution. I understand that invoking InstanceDescriptor makes it less of a unit test and if there is a way to test the ConvertTo function without it, I am more than happy to have that. |
|
@dipeshmsft We could technically just check the arguments match in the descriptor, but that's still not isolated. I'd just do it (keep it) this way now. Can be always pulled away into an integration test later and only check for not |
Description
Adds test coverage for
TextDecorationCollectionConverter. Both the original and my PR #9778 have been tested against this.ConvertFromStringwill returnnullonnullbut instance method will throw withNotSupportedExceptionConvertToclaims it only supportsInstanceDescriptorasdestinationType, it calls into base which will gladly acceptstringand based on the value type it will either returnstring.Empty(if value was null), or it returns the type name usingToString.Customer Impact
Improved test coverage on public surface.
Regression
No.
Testing
Local build.
Risk
Low.
Microsoft Reviewers: Open in CodeFlow