public void RoundTrip(MulticodecCode code)
        {
            var            data   = Encoding.UTF8.GetBytes("Hello World");
            var            mcdata = MulticodecPacked.AddPrefix(code, data);
            MulticodecCode outc;
            var            outdata = MulticodecPacked.SplitPrefix(mcdata, out outc);

            Assert.Equal(outc, code);
            Assert.Equal(MulticodecPacked.GetCode(mcdata), code);
            Assert.Equal(outdata, data);
        }
        public void GivenInvalidCode_ReturnsUnknown(byte[] data)
        {
            var c = MulticodecPacked.GetCode(data);

            Assert.Equal(c, MulticodecCode.Unknown);
        }