public void GetHashCode_ReturnsDifferentValuesForSameGroupAndElementButOneHasPrivateCreator() { var privateCreator = DicomDictionary.Default.GetPrivateCreator("Testing"); var tagWithPrivateCreator = new DicomTag(4013, 0x008, privateCreator); var tagWithoutPrivateCreator = new DicomTag(4013, 0x008); var hashCode1 = tagWithPrivateCreator.GetHashCode(); var hashCode2 = tagWithoutPrivateCreator.GetHashCode(); Assert.NotEqual(hashCode1, hashCode2); }
public void GetHashCode_ReturnsSameValuesForSameGroupAndElementAndPrivateCreator() { var privateCreator = DicomDictionary.Default.GetPrivateCreator("Testing"); var tagWithPrivateCreator1 = new DicomTag(4013, 0x008, privateCreator); var tagWithPrivateCreator2 = new DicomTag(4013, 0x008, privateCreator); var hashCode1 = tagWithPrivateCreator1.GetHashCode(); var hashCode2 = tagWithPrivateCreator2.GetHashCode(); Assert.Equal(hashCode1, hashCode2); }