Beispiel #1
0
        public void OnlyDigitsCorrectLength_Passed()
        {
            var target = new DriverLicenseNumberMaskRule("123456");
            var result = target.Passed();

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

            Assert.IsFalse(result);
        }
Beispiel #3
0
        public void WrongLength_NotPassed()
        {
            var target = new DriverLicenseNumberMaskRule("12345");
            var result = target.Passed();

            Assert.IsFalse(result);
        }