Skip to content

Commit 19b4e4c

Browse files
committed
fixup
1 parent d9cbfe6 commit 19b4e4c

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

QueryKit.IntegrationTests/Tests/DatabaseFilteringTests.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,4 +322,23 @@ public async Task can_handle_case_insensitive_in_for_string()
322322
people.FirstOrDefault(x => x.Id == fakePersonOne.Id).Should().NotBeNull();
323323
people.FirstOrDefault(x => x.Id == fakePersonTwo.Id).Should().BeNull();
324324
}
325+
326+
[Fact]
327+
public async Task can_handle_case_sensitive_in_for_string()
328+
{
329+
// Arrange
330+
var testingServiceScope = new TestingServiceScope();
331+
var fakePersonOne = new FakeTestingPersonBuilder().Build();
332+
await testingServiceScope.InsertAsync(fakePersonOne);
333+
334+
var input = $"""Title ^^ ["{fakePersonOne.Title.ToUpper()}"]""";
335+
336+
// Act
337+
var queryablePeople = testingServiceScope.DbContext().People;
338+
var appliedQueryable = queryablePeople.ApplyQueryKitFilter(input);
339+
var people = await appliedQueryable.ToListAsync();
340+
341+
// Assert
342+
people.FirstOrDefault(x => x.Id == fakePersonOne.Id).Should().BeNull();
343+
}
325344
}

0 commit comments

Comments
 (0)