Пример #1
0
        public void OnlyDigitsCorrectLength_Passed()
        {
            var target = new DriverLicenseNumberMaskRule("123456");
            var result = target.Passed();

            Assert.IsTrue(result);
        }
Пример #2
0
        public void HasLetter_NotPassed()
        {
            var target = new DriverLicenseNumberMaskRule("12345a");
            var result = target.Passed();

            Assert.IsFalse(result);
        }
Пример #3
0
        public void WrongLength_NotPassed()
        {
            var target = new DriverLicenseNumberMaskRule("12345");
            var result = target.Passed();

            Assert.IsFalse(result);
        }