Ejemplo n.º 1
0
        public void TestRemoveBuffIcon()
        {
            Serial m        = 0x1024;
            var    buffIcon = BuffIcon.Disguised;
            var    expected = new RemoveBuffPacket(m, buffIcon).Compile();

            using var ns = PacketTestUtilities.CreateTestNetState();
            BuffInfo.SendRemoveBuffPacket(ns, m, buffIcon);

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

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