From 997f3997e67665f187bcd1c7eb86b0504a102e5e Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 13 Sep 2026 17:17:14 +0200 Subject: [PATCH] Exercise CultCache.TryGet again in the OpenAsync durability test AquaSynth calls TryGet; cover both the hit and the miss. Co-Authored-By: Claude Opus 5 --- tests/GameCult.Caching.Tests/BackingStoreTests.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/GameCult.Caching.Tests/BackingStoreTests.cs b/tests/GameCult.Caching.Tests/BackingStoreTests.cs index 6c227e22..668df1ed 100644 --- a/tests/GameCult.Caching.Tests/BackingStoreTests.cs +++ b/tests/GameCult.Caching.Tests/BackingStoreTests.cs @@ -210,7 +210,10 @@ namespace GameCult.Caching.Tests cache.Dispose(); var reopened = await CultCacheMessagePack.OpenAsync(filePath); - Assert.That(reopened.Get(handle.Key)?.Value, Is.EqualTo("magic")); + Assert.That(reopened.TryGet(handle.Key, out var loaded), Is.True); + Assert.That(loaded?.Value, Is.EqualTo("magic")); + Assert.That(reopened.TryGet(new CultRecordKey("absent"), out var missing), Is.False); + Assert.That(missing, Is.Null); } finally {