From 02344c654617b4d5c39082aa9738a416cb459412 Mon Sep 17 00:00:00 2001 From: Libby Date: Thu, 12 Nov 2026 03:23:33 +0000 Subject: [PATCH] Pin the one-byte tail of a provider command document Co-Authored-By: Claude Sonnet 5.5 --- tests/GameCult.Mesh.Tests/CultMeshProviderSessionWireTests.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/GameCult.Mesh.Tests/CultMeshProviderSessionWireTests.cs b/tests/GameCult.Mesh.Tests/CultMeshProviderSessionWireTests.cs index 41339a85..ca4346aa 100644 --- a/tests/GameCult.Mesh.Tests/CultMeshProviderSessionWireTests.cs +++ b/tests/GameCult.Mesh.Tests/CultMeshProviderSessionWireTests.cs @@ -190,6 +190,9 @@ public sealed class CultMeshProviderSessionWireTests var thrown = Assert.Throws(() => CultMeshProviderSessionWire.DecodeCommandDocument(Record(payload.Concat(new byte[] { 0xc0, 0xc0 }).ToArray())))!; Assert.That(thrown.Message, Does.Contain("2 bytes after its first MessagePack value")); + var one = Assert.Throws(() => + CultMeshProviderSessionWire.DecodeCommandDocument(Record(payload.Concat(new byte[] { 0xc0 }).ToArray())))!; + Assert.That(one.Message, Does.Contain("1 bytes after its first MessagePack value")); } [Test]