UnitTest.cs 456 B

12345678910111213141516171819202122
  1. using MathModelingSimulator.Function;
  2. namespace UnitTestsSimMM
  3. {
  4. [TestClass]
  5. public class UnitTest
  6. {
  7. [TestMethod]
  8. public void GetHashPassword_Password11_Hashreturned()
  9. {
  10. string password = "11";
  11. string expected = "BrbeSdYMT//FOJwkU1AXSjKfOwkhepBWTx+P/IgBqRA=";
  12. Security obj = new Security();
  13. string result = obj.GetHashPassword(password);
  14. Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreEqual(expected, result);
  15. }
  16. }
  17. }