PreCut2 tests: the v6 suffix refusal asserts the counted suffix, not the absence of the readable stamps it also names

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-22 23:57:51 +02:00
commit 74bcf075a4

View file

@ -763,8 +763,8 @@ namespace GameCult.Caching.Tests
var refusal = Assert.Throws<CultStoreUnreadableException>(() => new DirectoryMessagePackBackingStore(manifest).PullAll())!;
Assert.That(refusal.Message, Does.Contain("cultcache.store.v6 with a suffix of"));
Assert.That(refusal.Message, Does.Not.Contain("directory-content-addressed-pages"));
var suffixBytes = System.Text.Encoding.UTF8.GetByteCount(".directory-content-addressed-pages");
Assert.That(refusal.Message, Does.Contain($" is cultcache.store.v6 with a suffix of {suffixBytes} bytes;"));
}
finally
{