public void TestPasswordStrengthforMedium() { //Assemble the test to check the strength of password PasswordStrengthController PasswordStrengthCheck = new PasswordStrengthController(); //Expected Result of the Test string expectedResult = "Password is Medium"; //Actual Result of the Test for password "Beautiful1" which doesnot satisfy all the requirements string actualResult = PasswordStrengthCheck.StrengthCheck("Beautiful1"); //Match expected result with actual result Assert.AreEqual(expectedResult, actualResult); }
public void TestPasswordStrengthforBlank() { //Assemble the test to check the strength of password PasswordStrengthController PasswordStrengthCheck = new PasswordStrengthController(); //Expected Result of the Test string expectedResult = "Password is Blank"; //Actual Result of the Test for blank password string actualResult = PasswordStrengthCheck.StrengthCheck(""); //Match expected result with actual result Assert.AreEqual(expectedResult, actualResult); }