public void EncodeDecodePassword() { const string test_pass = "******"; var passwordBytes = LdapHelper.GetPasswordBytes(test_pass); Assert.IsNotNull(passwordBytes); var strPass = LdapHelper.GetPassword(passwordBytes); Assert.AreEqual(strPass, test_pass); }