public void TcpStructIntInput() { var lengthStruct = new TcpLengthStruct(65277); lengthStruct.Byte0.Should().Be(253); lengthStruct.Byte1.Should().Be(254); }
public void TcpStructByteInput() { var lengthStruct = new TcpLengthStruct(new byte[] { 253, 254, 0, 0 }); lengthStruct.Value.Should().Be(65277); }