コード例 #1
0
        public void TestAddBuffIcon(uint mob, BuffIcon iconID, int titleCliloc, int secondaryCliloc, string args, int ts)
        {
            var timeSpan = new TimeSpan(ts);
            var expected = new AddBuffPacket(
                mob, iconID, titleCliloc, secondaryCliloc, args, timeSpan
                ).Compile();

            using var ns = PacketTestUtilities.CreateTestNetState();
            BuffInfo.SendAddBuffPacket(ns, mob, iconID, titleCliloc, secondaryCliloc, args, timeSpan);

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

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