private static string BaseEncodeTest(SocketIoPacket packet, string expectedMessage) { var message = packet.Encode(); message.Should().Be(expectedMessage); return(message); }
private static string BaseEncodeTest(SocketIoPacket packet, string expectedMessage) { var message = packet.Encode(); Assert.AreEqual(expectedMessage, message, $"{nameof(BaseEncodeTest)}.{nameof(message)}: {message}"); return(message); }
private static void BaseEncodeDecodeTest(SocketIoPacket packet) { var message = packet.Encode(); BaseDecodeTest(message, packet); }