public void CanParseOptions() { var descr = "cn;lang-de;lang-en"; var parsed = new LdapAttributeDescription(descr); Assert.Equal("cn", parsed.Oid); Assert.Equal(2, parsed.Options.Count); Assert.Equal("lang-de", parsed.Options[0]); Assert.Equal("lang-en", parsed.Options[1]); }
public bool IsType(LdapAttributeDescription type) { return(String.Equals(Name, type.Oid, StringComparison.OrdinalIgnoreCase) || String.Equals(Oid, type.Oid, StringComparison.Ordinal)); }
public void CanParseAttributeDescription(string descr) { var parsed = new LdapAttributeDescription(descr); Assert.Equal(descr, parsed.ToString()); }