Skip to content

Commit 2ed978b

Browse files
CopilotStefH
andcommitted
Add == and != test cases for Instant and Instant? comparison tests
Agent-Logs-Url: https://github.com/zzzprojects/System.Linq.Dynamic.Core/sessions/4e543367-6cb4-4164-bd33-fbf0fecca256 Co-authored-by: StefH <249938+StefH@users.noreply.github.com>
1 parent 7dc0860 commit 2ed978b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/System.Linq.Dynamic.Core.Tests/TypeConvertors/NodaTimeConverterTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ private class EntityWithInstant
169169
[InlineData(">=", 2)]
170170
[InlineData("<", 1)]
171171
[InlineData("<=", 2)]
172+
[InlineData("==", 1)]
173+
[InlineData("!=", 2)]
172174
public void FilterByInstant_WithRelationalOperator(string op, int expectedCount)
173175
{
174176
// Arrange
@@ -192,6 +194,8 @@ public void FilterByInstant_WithRelationalOperator(string op, int expectedCount)
192194
[InlineData(">=", 2)]
193195
[InlineData("<", 1)]
194196
[InlineData("<=", 2)]
197+
[InlineData("==", 1)]
198+
[InlineData("!=", 3)] // null != now evaluates to true in C# nullable semantics
195199
public void FilterByNullableInstant_WithRelationalOperator(string op, int expectedCount)
196200
{
197201
// Arrange

0 commit comments

Comments
 (0)