public void VarintEncodeAndDecodeByteMaxValue() { const byte number = Byte.MaxValue; var encoded = VarintBitConverter.GetVarintBytes(number); Assert.Equal(number, VarintBitConverter.ToByte(encoded)); }