Exemplo n.º 1
0
        public void TcpStructIntInput()
        {
            var lengthStruct = new TcpLengthStruct(65277);

            lengthStruct.Byte0.Should().Be(253);
            lengthStruct.Byte1.Should().Be(254);
        }
Exemplo n.º 2
0
        public void TcpStructByteInput()
        {
            var lengthStruct = new TcpLengthStruct(new byte[] { 253, 254, 0, 0 });

            lengthStruct.Value.Should().Be(65277);
        }