public void HashCode() { DN dn1 = new DN("Cn=PETE,oU=pEoPle,DC=exAMplE,Dc=cOM"); DN dn2 = new DN("CN=pete,OU=people , DC=example,DC=com"); DN dn3 = new DN("CN=peter,OU=people,DC=example,DC=com"); Assert.AreEqual(dn1.GetHashCode(), dn2.GetHashCode()); Assert.IsFalse(dn1.GetHashCode() == dn3.GetHashCode()); }
public void HashCode() { DN dn1 = new DN("Cn=PETE,oU=pEoPle,DC=exAMplE,Dc=cOM"); DN dn2 = new DN("CN=pete,OU=people , DC=example,DC=com"); DN dn3 = new DN("CN=peter,OU=people,DC=example,DC=com"); Assert.AreEqual(dn1.GetHashCode(), dn2.GetHashCode()); Assert.IsFalse(dn1.GetHashCode() == dn3.GetHashCode()); }