acdream/tests/AcDream.Core.Net.Tests/Packets
Erik 6119364306 test(net): pin the transport flag word against ACE, all twenty-three bits
The wire-stack audit checked the transport layer by hand and found it clean:
PacketHeader's seven fields match ACE's Pack order exactly, the optional-header
sections are parsed in ACE's order, and PacketHeaderFlags is a twenty-three of
twenty-three value match including the sparse gaps between 0x04 and 0x100 and
between 0x00800000 and 0x01000000.

Clean is worth freezing. These bits are not design choices; each one gates an
optional-header section, so a single wrong value shifts every following
section's offset and takes the packet checksum with it. The failure would not
look like a wrong flag, it would look like a corrupt connection. The enum is
small enough to pin exhaustively, so this transcribes ACE's declaration and
asserts both directions: every ACE flag exists here with ACE's value, and we
declare nothing ACE does not.

Core.Net tests go 630 to 654.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-29 01:54:56 +02:00
..
BorrowedPacketCodecTests.cs perf(net): borrow inbound packet storage 2026-07-25 05:58:55 +02:00
ConnectRequestTests.cs feat(net): live ACE handshake verified — ConnectRequest received and parsed (Phase 4.6a/b/c/d) 2026-04-11 14:46:19 +02:00
FragmentAssemblerTests.cs perf(net): borrow inbound packet storage 2026-07-25 05:58:55 +02:00
LoginRequestTests.cs feat(net): PacketWriter + LoginRequest payload builder (Phase 4.5a/b) 2026-04-11 14:36:39 +02:00
MessageFragmentHeaderTests.cs feat(net): message fragment header + fragment + assembler (Phase 4.3) 2026-04-11 14:20:53 +02:00
MessageFragmentTests.cs perf(net): borrow inbound packet storage 2026-07-25 05:58:55 +02:00
PacketCodecEncodeTests.cs perf(net): frame recurring sends in place 2026-07-25 06:02:52 +02:00
PacketCodecTests.cs feat(net): PacketHeaderOptional + full packet decode + CRC verify (Phase 4.4) 2026-04-11 14:24:29 +02:00
PacketHeaderFlagsConformanceTests.cs test(net): pin the transport flag word against ACE, all twenty-three bits 2026-07-29 01:54:56 +02:00
PacketHeaderTests.cs feat(net): PacketHeader + PacketHeaderFlags + Hash32 checksum (Phase 4.2) 2026-04-11 14:17:37 +02:00
PacketWriterTests.cs feat(net): PacketWriter + LoginRequest payload builder (Phase 4.5a/b) 2026-04-11 14:36:39 +02:00
TransportDisconnectTests.cs fix(net): honor retail graceful logout handshake 2026-07-20 23:31:23 +02:00