Exemple #1
0
        public void ComputeHash32Test(byte[] data, uint seed, uint expected)
        {
            Murmur3 hasher = new Murmur3();
            uint    actual = hasher.ComputeHash32(data, seed);

            Assert.Equal(expected, actual);
        }
Exemple #2
0
        public void ComputeHash32_ExceptionTest()
        {
            Murmur3 hasher = new Murmur3();

            Assert.Throws <ArgumentNullException>(() => hasher.ComputeHash32(null, 0));
        }