-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for Error occurs when you check whether a string or integer liter…
…al is in an enum collection (#3023) * Refactor InBinder to convert left operand to enum type if necessary * Add tests for filter with In Operator with enums member names and member integral values * Add more functional tests for parseFilter with 'In' Operation with Enums * Add a failed tests when Float are used as enum integral value with In Operator * Add parse filter test with 'In' operator with enums where left operand is Invalid integral values * Adding tests for errors thrown when using string literal that doesn't exists as enum member name * Refactor to reuse methods and move logic that check if convert left node is required to private method * Remove unnecessary ShouldConvertLeftOperand() method and put the logic inside BindInOperator() * Make the new tests to only use generic methods introduced * Resolve comments * Reuse GetIEdmProperty() and GetIEdmType() methods in the other existing tests * Merge related tests using [Theory] * use string instead of object
- Loading branch information
1 parent
7a93e7c
commit 0c80fba
Showing
3 changed files
with
214 additions
and
42 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
Oops, something went wrong.