C#: the unreadable-format refusal names every format the runtime reads, v3 included
A mutation survivor on the merge's refusal text: dropping v3 from the list passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
e5f06a2a49
commit
0f13c7d368
1 changed files with 1 additions and 0 deletions
|
|
@ -222,6 +222,7 @@ namespace GameCult.Caching.Tests
|
|||
{
|
||||
var snapshot = new CultPersistedStoreSnapshot { FormatVersion = header };
|
||||
var error = Assert.Throws<CultStoreUnreadableException>(() => CultDocumentMessagePackSerialization.RequireSingleFileFormat(snapshot))!;
|
||||
Assert.That(error.Message, Does.Contain($"this runtime reads {CultPersistedStoreSnapshot.FormatV1}, {CultPersistedStoreSnapshot.FormatV2} and {CultPersistedStoreSnapshot.FormatV3}."));
|
||||
if (echoed)
|
||||
{
|
||||
Assert.That(error.Message, Does.Contain("format " + header + " is not"));
|
||||
|
|
|
|||
Loading…
Reference in a new issue