示例#1
0
        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);
        }
示例#2
0
        public void Length_6_returned1()
        {
            //arrange
            string password = "******";
            int    expected = 1; //1-number

            //act
            int actual = PasswordStrengthCheker.GetPasswordStrength(password);

            //assert
            Assert.AreEqual(expected, actual);
        }
示例#3
0
        public void Length_8_returned5()
        {
            //arrange
            string password = "******";
            int    expected = 5; //all options

            //act
            int actual = PasswordStrengthCheker.GetPasswordStrength(password);

            //assert
            Assert.AreEqual(expected, actual);
        }