public void Length_5_returned3() { //arrange string password = "******"; int expected = 3; //1-uppercase, 2-number, 3-lowercase //act int actual = PasswordStrengthCheker.GetPasswordStrength(password); //assert Assert.AreEqual(expected, actual); }
public void Length_6_returned1() { //arrange string password = "******"; int expected = 1; //1-number //act int actual = PasswordStrengthCheker.GetPasswordStrength(password); //assert Assert.AreEqual(expected, actual); }
public void Length_8_returned5() { //arrange string password = "******"; int expected = 5; //all options //act int actual = PasswordStrengthCheker.GetPasswordStrength(password); //assert Assert.AreEqual(expected, actual); }