示例#1
0
        public void When_NotContains_1Numeric_Character_Return_False()
        {
            var result = Checker.IsStrongPassword("ABCDEFGHI");

            Assert.AreEqual(false, result);
        }
示例#2
0
        public void When_Password_Contains_An_SpecialCharacter_Return_True()
        {
            var result = Checker.IsStrongPassword("1234567AB#");

            Assert.AreEqual(result, true);
        }
示例#3
0
        public void When_DoesntContainSpecialCharacter_ReturnFalse()
        {
            var result = Checker.IsStrongPassword("111111111111a");

            Assert.AreEqual(false, result);
        }
示例#4
0
        public void When_ContainsAtLeast1AlphabeticCharacter_ReturnFalse()
        {
            var result = Checker.IsStrongPassword("111111111111");

            Assert.AreEqual(false, result);
        }
示例#5
0
        public void When_Length_IsLessThen_Seven_ItShould_Return_False()
        {
            var result = Checker.IsStrongPassword("123456");

            Assert.AreEqual(false, result);
        }
示例#6
0
        public void TestMethod1()
        {
            var result = Checker.IsStrongPassword("x");

            Assert.AreEqual(false, result);
        }
示例#7
0
 public void When_Password_IsNull_ItShouldThrowAnException()
 {
     Checker.IsStrongPassword(null);
 }