From 3f33445d8403d1a37d9cf593c386f2be9456c710 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 2 Oct 2026 20:51:00 +0200 Subject: [PATCH] C# tests: assert the header refusal text with plain checks Co-Authored-By: Claude Opus 5.5 --- tests/GameCult.Caching.Tests/StoreReadabilityTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/GameCult.Caching.Tests/StoreReadabilityTests.cs b/tests/GameCult.Caching.Tests/StoreReadabilityTests.cs index 7e06e5b4..41ddb1e1 100644 --- a/tests/GameCult.Caching.Tests/StoreReadabilityTests.cs +++ b/tests/GameCult.Caching.Tests/StoreReadabilityTests.cs @@ -161,8 +161,9 @@ namespace GameCult.Caching.Tests CultCacheMessagePack.Create(path, new CultCacheOpenOptions { Registry = Registry, UseDirectoryStore = directoryStore }))!; Assert.That(refusal.Message.Contains(header, StringComparison.Ordinal), Is.EqualTo(echoed), refusal.Message); + Assert.That(refusal.Message.Contains("SECRETHDR", StringComparison.Ordinal), Is.False, refusal.Message); if (!echoed) - Assert.That(refusal.Message, Does.Not.Contain("SECRETHDR").And.Not.Contain("٣")); + Assert.That(refusal.Message.Contains("٣", StringComparison.Ordinal), Is.False, refusal.Message); } // Only nothing at the path is an empty store. A link whose target is gone is an I/O error on open and on commit, never an