示例#1
0
        public void MoreThan6Digits_NotPassed()
        {
            var target = new PassportIssueAuthorityMaskRule("1234567");
            var result = target.Passed();

            Assert.IsFalse(result);
        }
示例#2
0
        public void TwoHyphensAnd6Digits_NotPassed()
        {
            var target = new PassportIssueAuthorityMaskRule("123--456");
            var result = target.Passed();

            Assert.IsFalse(result);
        }
示例#3
0
        public void HasLetterCorrectLength_NotPassed()
        {
            var target = new PassportIssueAuthorityMaskRule("1a3-456");
            var result = target.Passed();

            Assert.IsFalse(result);
        }
示例#4
0
        public void HyphenAnd6Digits_Passed()
        {
            var target = new PassportIssueAuthorityMaskRule("123-456");
            var result = target.Passed();

            Assert.IsTrue(result);
        }
示例#5
0
        public void LessThan6DigitsWithSpace_NotPassed()
        {
            var target = new PassportIssueAuthorityMaskRule(" 12345");
            var result = target.Passed();

            Assert.IsFalse(result);
        }