Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        private static void BaseDecodeEncodeTest(string message)
        {
            var packet = EngineIoPacket.Decode(message);

            BaseEncodeTest(packet, message);
        }