public void ArgumentExceptions() { Assert.Throws <ArgumentNullException>(() => Murmur3HashCode.Hash(null, 0, 100)); Assert.Throws <ArgumentOutOfRangeException>(() => Murmur3HashCode.Hash(new byte[10], -1, 100)); Assert.Throws <ArgumentOutOfRangeException>(() => Murmur3HashCode.Hash(new byte[10], 11, 100)); Assert.Throws <ArgumentOutOfRangeException>(() => Murmur3HashCode.Hash(new byte[10], 0, -1)); Assert.Throws <ArgumentOutOfRangeException>(() => Murmur3HashCode.Hash(new byte[10], 5, 6)); }
/// <inheritdoc /> public override int GetHashCode() { return(Murmur3HashCode.Hash(_bytes, DataOffset, DataSize)); }
public void Test() { _ = Murmur3HashCode.Hash(new byte[100], 0, 100); _ = Murmur3HashCode.Hash(new byte[100], 0, 99); _ = Murmur3HashCode.Hash(new byte[100], 0, 98); }