Exemple #1
0
        public void ChecksPasswordPolicyByPosition_NoBs_Fails()
        {
            var subject = new ChecksPasswordPolicyByPosition();

            subject.CheckPassword("1-3 b: cdefg").Should().BeFalse();
        }
Exemple #2
0
        public void ChecksPasswordPolicyByPosition_BothMatch_Fails()
        {
            var subject = new ChecksPasswordPolicyByPosition();

            subject.CheckPassword("2-9 c: ccccccccc").Should().BeFalse();
        }
Exemple #3
0
        public void ChecksPasswordPolicyByPosition_OneA_Passes()
        {
            var subject = new ChecksPasswordPolicyByPosition();

            subject.CheckPassword("1-3 a: abcde").Should().BeTrue();
        }