Skip to content

Conversation

@StefH
Copy link
Collaborator

@StefH StefH commented May 15, 2025

No description provided.

@StefH StefH requested a review from Copilot May 15, 2025 10:39
@StefH StefH self-assigned this May 15, 2025
@StefH StefH added the test label May 15, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds extra unit tests to verify the behavior of null propagation and string conversion when AllowEqualsAndToStringMethodsOnObject is true. It also updates array initialization syntax in tests and refines a pattern match in the expression helper.

  • Added two new unit tests for null propagation in QueryableTests.Where.cs.
  • Updated array initialization formatting in ExpressionParserTests.cs.
  • Replaced a negated type-check with a positive "is not" pattern in ExpressionHelper.cs.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
test/System.Linq.Dynamic.Core.Tests/QueryableTests.Where.cs Added two unit tests for null propagation and ToString conversion handling.
test/System.Linq.Dynamic.Core.Tests/Parser/ExpressionParserTests.cs Reformatted array initialization using new C# syntax.
src/System.Linq.Dynamic.Core/Parser/ExpressionHelper.cs Updated type-check to use the new pattern matching syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants