public void TestInvalidMapEnable()
        {
            var data = new InvalidMapEnable().Compile();

            Span <byte> expectedData = stackalloc byte[]
            {
                0xC6 // Packet ID
            };

            AssertThat.Equal(data, expectedData);
        }
Exemple #2
0
        public void TestInvalidMapEnable()
        {
            var expected = new InvalidMapEnable().Compile();

            using var ns = PacketTestUtilities.CreateTestNetState();
            ns.SendInvalidMap();

            var result = ns.SendPipe.Reader.TryRead();

            AssertThat.Equal(result.Buffer[0].AsSpan(0), expected);
        }