public void ToLdapEntity_Value() { LdapEntry entry = Generators.CreateEntry(); var entity = entry.ToLdapEntity <LdapUser>(_mapper); Assert.Multiple(() => { Assert.AreEqual(entry.DN, entity.DistinguishedName); Assert.AreEqual(entry.getAttribute("dn").StringValue, entity.DistinguishedName); Assert.AreEqual(entry.getAttribute("cn").StringValue, entity.CommonName); Assert.AreEqual(entry.getAttribute("gn").StringValue, entity.GivenName); }); }