C# tests: assert the header refusal text with plain checks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9e481f59b7
commit
3f33445d84
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue