private static EngineIoPacket BaseDecodeTest(string message, EngineIoPacket expectedPacket) { var packet = EngineIoPacket.Decode(message); Assert.AreEqual(expectedPacket.Prefix, packet.Prefix, $"{nameof(BaseDecodeTest)}.{nameof(packet.Prefix)}: {message}"); Assert.AreEqual(expectedPacket.Value, packet.Value, $"{nameof(BaseDecodeTest)}.{nameof(packet.Value)}: {message}"); return(packet); }
private static EngineIoPacket BaseDecodeTest(string message, EngineIoPacket expectedPacket) { var packet = EngineIoPacket.Decode(message); packet.Prefix.Should().Be(expectedPacket.Prefix); packet.Value.Should().Be(expectedPacket.Value); return(packet); }
private static void BaseDecodeEncodeTest(string message) { var packet = EngineIoPacket.Decode(message); BaseEncodeTest(packet, message); }