public static void Peek_SingleByteBuffer_ShouldReturnSameByte(byte initialByte)
        {
            ReadOnlySpan <byte> buffer = stackalloc byte[] { initialByte };
            var             reader     = new CborValueReader(buffer);
            CborInitialByte header     = reader.Peek();

            Assert.Equal(initialByte, header.InitialByte);
        }
 public static void Peek_EmptyBuffer_ShouldThrowInvalidOperationException()
 {
     Assert.Throws <InvalidOperationException>(() =>
     {
         var reader = new CborValueReader(ReadOnlySpan <byte> .Empty);
         reader.Peek();
     });
 }