Esempio n. 1
0
        public void TestVerifyMd5Hash()
        {
            MD5    md5Hash = MD5.Create();
            string pass    = "******";

            string hash = LogPanel.GetMd5Hash(md5Hash, pass);

            bool result = LogPanel.VerifyMd5Hash(md5Hash, pass, hash);

            bool Expected = true;

            Assert.AreEqual(Expected, result, "nie sa rowne");
        }