예제 #1
0
        public void WierdLongValuesAreNotValid([Values(-1, 0, 01234567890123)] long input)
        {
            var uprn   = new Uprn(input);
            var actual = uprn.IsValidUprn(uprn);

            Assert.That(actual, Is.False);
        }
예제 #2
0
        public void WierdValuesAreNotValid([Values("",
                                                   "-1", "01234567890123", "e", "uprn", "   0.12")]
                                           string input)
        {
            var uprn   = new Uprn(input);
            var actual = uprn.IsValidUprn(uprn);

            Assert.That(actual, Is.False);
        }
예제 #3
0
        public void SensibleStringValuesAreValid([Values("1",
                                                         "8090", "0123456789012", "        23     ")]
                                                 string input)
        {
            var uprn   = new Uprn(input);
            var actual = uprn.IsValidUprn(uprn);

            Assert.That(actual, Is.True);
        }
예제 #4
0
        public void SensibleLongValuesAreValid([Values(1,
                                                       8090, 0123456789012, 23)]
                                               long input)
        {
            var uprn   = new Uprn(input);
            var actual = uprn.IsValidUprn(uprn);

            Assert.That(actual, Is.True);
        }