Example #1
0
        public void HashCode_Should_BeNotEqualWithNonEqualDistinguishedNames()
        {
            // Arrange
            var dn1 = new DistinguishedName("Cn=Dave,oU=pEoPle,DC=example,Dc=cOM");
            var dn2 = new DistinguishedName("CN=david,OU=people,DC=example,DC=com");

            // Act

            // Assert
            Assert.NotEqual(dn1.GetHashCode(), dn2.GetHashCode());
        }
Example #2
0
 public override int GetHashCode()
 {
     return(DistinguishedName.GetHashCode());
 }