AcoustID.Tests.Chromaprint.FingerprintCompressorTest.TestOneItemOneBitExcept C# (CSharp) Method

TestOneItemOneBitExcept() private method

private TestOneItemOneBitExcept ( ) : void
return void
        public void TestOneItemOneBitExcept()
        {
            FingerprintCompressor compressor = new FingerprintCompressor();

            int[] fingerprint = { 1 << 6 };
            string value = compressor.Compress(fingerprint);

            byte[] expected = { 0, 0, 0, 1, 7, 0 };
            byte[] actual = Base64.ByteEncoding.GetBytes(value);

            CollectionAssert.AreEqual(actual, expected);
        }