Skip to content
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 string.Equals support. #365

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add string.Equals support. #365

wants to merge 1 commit into from

Conversation

edwardbarford
Copy link
Collaborator

The Cosmos SDK now supports string.Equals.

@edwardbarford edwardbarford changed the title Add string.Equals suoport. Add string.Equals support. Sep 5, 2024

var (realResults, testResults) = await _testCosmos.WhenExecutingAQuery<TestModel>(
"partition",
q => q.Where(tm => tm.Name != null && tm.Name.Equals("bob bobertson", StringComparison.InvariantCultureIgnoreCase))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does Cosmos now support any comparison passed to it? If it doesn't support some of the others in StringComparison it is probably worth adding a few negative tests and ensuring ContainerMock throws the same exception

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants