Esempio n. 1
0
        public void OnlyDigitsCorrectLength_Passed()
        {
            var target = new PassportSeriesMaskRule("1234");
            var result = target.Passed();

            Assert.IsTrue(result);
        }
Esempio n. 2
0
        public void HasLetter_NotPassed()
        {
            var target = new PassportSeriesMaskRule("123a");
            var result = target.Passed();

            Assert.IsFalse(result);
        }
Esempio n. 3
0
        public void WrongLength_NotPassed()
        {
            var target = new PassportSeriesMaskRule("12345");
            var result = target.Passed();

            Assert.IsFalse(result);
        }