Ejemplo n.º 1
0
        public void When_NotContains_1Numeric_Character_Return_False()
        {
            var result = Checker.IsStrongPassword("ABCDEFGHI");

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

            Assert.AreEqual(result, true);
        }
Ejemplo n.º 3
0
        public void When_DoesntContainSpecialCharacter_ReturnFalse()
        {
            var result = Checker.IsStrongPassword("111111111111a");

            Assert.AreEqual(false, result);
        }
Ejemplo n.º 4
0
        public void When_ContainsAtLeast1AlphabeticCharacter_ReturnFalse()
        {
            var result = Checker.IsStrongPassword("111111111111");

            Assert.AreEqual(false, result);
        }
Ejemplo n.º 5
0
        public void When_Length_IsLessThen_Seven_ItShould_Return_False()
        {
            var result = Checker.IsStrongPassword("123456");

            Assert.AreEqual(false, result);
        }
Ejemplo n.º 6
0
        public void TestMethod1()
        {
            var result = Checker.IsStrongPassword("x");

            Assert.AreEqual(false, result);
        }
Ejemplo n.º 7
0
 public void When_Password_IsNull_ItShouldThrowAnException()
 {
     Checker.IsStrongPassword(null);
 }