public bool TestAdminConnect() { var adminMode = (LDAPAdminMode)Enum.Parse(typeof(LDAPAdminMode), Config.LdapLibrary["LDAPAdminMode"]); Test initLibrary; if (adminMode.Equals(LDAPAdminMode.Admin)) { initLibrary = TestCompleteInitLibrary; } else { initLibrary = TestStardardInitLibraryNoAdmin; } //Init the DLL if (!initLibrary()) { return(false); } //Connect with admin user if (!_ldapManagerObj.Connect()) { return(false); } //Assert the behavior of DLL if (!_ldapManagerObj.Equals(null)) { return(true); } return(false); }
public void TestAdminConnect() { //Init the DLL TestCompleteInitLibrary(); //Connect with admin user Assert.IsTrue(_ldapManagerObj.Connect()); }