public void Test_DisabledAccountsNOTPickedUp() { Test_Helper.SetupWsDevDomain(); DirectoryAnalyzer da = new DirectoryAnalyzer(true); IAddress addr = da.GetUserDN("disableuser"); Assert.IsNull(addr); }
public void Test_GetCurrentUserDN() { Test_Helper.SetupWsDevDomain(); DirectoryAnalyzer da = new DirectoryAnalyzer(true); IAddress addr = da.GetUserDN("lnpair"); Assert.IsNotNull(addr); Assert.AreEqual(AddressUtils.GetAddressType(addr.LdapPath), AddressType.X500); }