using System; using Server.Network; namespace Server.Tests.Network { public static class PacketTestUtilities { public static Span Compile(this Packet p) => p.Compile(false, out var length).AsSpan(0, length); public static NetState CreateTestNetState() => new(new MockSocket()); } }