Exemplo n.º 1
0
        public void Should_compute_equivalent_hash_value_for_byte_array()
        {
            var str1 = Encoding.UTF8.GetBytes("this is a string");
            var str2 = Encoding.UTF8.GetBytes("this is a string");

            var hash1 = Murmur3.HashBytes(str1);
            var hash2 = Murmur3.HashBytes(str2);

            Assert.AreEqual(hash1, hash2);
        }