public void GetHashCodeConsistentWithEquals() { Assert.AreEqual(_dataPacket.GetHashCode(), _duplicateDataPacket.GetHashCode()); }
public void GetHashCodeDependsOnLength() { Assert.AreNotEqual(_dataPacket.GetHashCode(), _dataPacketDifferentLength.GetHashCode()); }
public void GetHashCodeDependsOnInputFile() { Assert.AreNotEqual(_dataPacket.GetHashCode(), _dataPacketDifferentInputFile.GetHashCode()); }
public void GetHashCodeDependsOnOffset() { Assert.AreNotEqual(_dataPacket.GetHashCode(), _dataPacketDifferentOffset.GetHashCode()); }
public override int GetHashCode() { return(_firstDataPacket.GetHashCode() .CombineHashCode(_secondDataPacket)); }