public void GetHashCodeReturnsUniqueValue() { using (NativeArray2D <int> a1 = CreateArray(2, 3)) { using (NativeArray2D <int> a2 = CreateArray(2, 3)) { int hash1 = a1.GetHashCode(); int hash2 = a2.GetHashCode(); Assert.That(hash1, Is.Not.EqualTo(hash2)); } } }
public override int GetHashCode() { return(Value.GetHashCode()); }