Skip to content

Commit c6d24a3

Browse files
Copilotejsmith
andcommitted
Extend test to cover CloneValues=true scenario
Co-authored-by: ejsmith <282584+ejsmith@users.noreply.github.com>
1 parent 35f8bcf commit c6d24a3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/Foundatio.Tests/Caching/InMemoryCacheClientTests.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1597,10 +1597,12 @@ public async Task DoMaintenanceAsync_WithPositiveTimezoneOffset_ShouldNotThrowOn
15971597
}
15981598
}
15991599

1600-
[Fact]
1601-
public async Task GetAsync_WithObjectType_ReturnsValueDirectly()
1600+
[Theory]
1601+
[InlineData(false)]
1602+
[InlineData(true)]
1603+
public async Task GetAsync_WithObjectType_ReturnsValueDirectly(bool cloneValues)
16021604
{
1603-
var cache = new InMemoryCacheClient(o => o.LoggerFactory(Log));
1605+
var cache = new InMemoryCacheClient(o => o.LoggerFactory(Log).CloneValues(cloneValues));
16041606
using (cache)
16051607
{
16061608
var data = new MyData("hello", 42);

0 commit comments

Comments
 (0)