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
ConnectRequestTests.cs
FragmentAssemblerTests.cs
LoginRequestTests.cs
MessageFragmentHeaderTests.cs
MessageFragmentTests.cs
PacketCodecEncodeTests.cs perf(net): frame recurring sends in place 2026-07-25 06:02:52 +02:00
PacketCodecTests.cs
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
PacketWriterTests.cs
TransportDisconnectTests.cs