public void emit_literal_copies_bytes_to_destination(int dataSize, byte tagByteValue, int resultSizeExtension) { var target = new SnappyCompressor(); var data = GetRandomData(dataSize); var result = new byte[target.MaxCompressedLength(dataSize)]; var size = target.EmitLiteral(result, 0, data, 0, dataSize, true); Assert.Equal(data, result.Skip(size - dataSize).Take(dataSize)); }