public void EqualsMethod() { 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.IsTrue(dn1.Equals(dn2)); Assert.IsFalse(dn1.Equals(dn3)); }
public static bool equals(string dn1, string dn2) { DN dnA = new DN(dn1); DN dnB = new DN(dn2); return(dnA.Equals(dnB)); }