public void NonIdenticalValuesHaveDifferentHash() { var a = new SampleSubWithPrivateInherited(1); var b = new SampleSubWithPrivateInherited(2); PAssert.That(() => FieldwiseHasher.Hash(a) != FieldwiseHasher.Hash(b) && !ReferenceEquals(a, b) ); }
public void NonIdenticalValuesAreNotEqual() { var a = new SampleSubWithPrivateInherited(1); var b = new SampleSubWithPrivateInherited(2); PAssert.That(() => !FieldwiseEquality.AreEqual(a, b) && !ReferenceEquals(a, b) ); }