-
Notifications
You must be signed in to change notification settings - Fork 790
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not throw from IsUnionCaseTester and handle a case where symbol is…
… not considered a method/property (#17634) * WIP some unit tests * Return false instead of throwing * Fix IsUnionCaseTester for generated code Seems like methods/properties that are generated in IL, like `get_Is*` in this case, have `IsMethod` (or `IsProperty`) false for some reason, even when `IsPropertyGetterMethod` is true. This would result in `IsUnionCaseTester` giving incorrect answers. This fixes that at `IsUnionCaseTester`, though it might be worth it to see if it can be fixed at the root of the issue * Add a release note * Move helpers around in unit tests for more reuse * Add negative unit test --------- Co-authored-by: Adam Boniecki <abonie@users.noreply.github.com> Co-authored-by: Vlad Zarytovskii <vzaritovsky@hotmail.com>
- Loading branch information
1 parent
11561af
commit 99bd001
Showing
7 changed files
with
235 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.