Beispiel #1
0
        public void Ldap_Attribute_Set_Should_Contain_Attribute()
        {
            LdapAttributeSet attributeSet = new LdapAttributeSet();
            var attr = new LdapAttribute("objectclass", "inetOrgPerson");

            attributeSet.Add(attr);
            Assert.True(attributeSet.Contains(attr));
        }
Beispiel #2
0
        public void Ldap_Attribute_Set_Attribute_Should_Be_Removed()
        {
            LdapAttributeSet attributeSet = new LdapAttributeSet();
            var attr = new LdapAttribute("objectclass", "inetOrgPerson");

            attributeSet.Add(attr);
            attributeSet.Remove(attr);
            Assert.False(attributeSet.Contains(attr));
        }