public void HashCodeDependsOnItems() { CPV v1 = new CPV(new object[] { 1, 2, 3 }); CPV v2 = new CPV(new object[] { 1, 2, 4 }); Expect(v1.GetHashCode(), Not.EqualTo(v2.GetHashCode())); }
public void HashCodeRepeats() { CPV v = new CPV(new object[] { 1, 2, 3 }); Expect(v.GetHashCode(), EqualTo(v.GetHashCode())); }