public void TestGetMd5Hash() { MD5 hash = MD5.Create(); string pass = "******"; string result = LogPanel.GetMd5Hash(hash, pass); string Expected = "ed076287532e86365e841e92bfc50d8c"; Assert.AreEqual(Expected, result, "nie sa rowne"); }
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"); }