コード例 #1
0
        private static string BaseEncodeTest(EngineIoPacket packet, string expectedMessage)
        {
            var message = packet.Encode();

            Assert.AreEqual(expectedMessage, message, $"{nameof(BaseEncodeTest)}.{nameof(message)}: {message}");

            return(message);
        }
コード例 #2
0
        private static string BaseEncodeTest(EngineIoPacket packet, string expectedMessage)
        {
            var message = packet.Encode();

            message.Should().Be(expectedMessage);

            return(message);
        }
コード例 #3
0
        private static void BaseEncodeDecodeTest(EngineIoPacket packet)
        {
            var message = packet.Encode();

            BaseDecodeTest(message, packet);
        }