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