Exemple #1
0
        public void EmptyValueGivesIsValidFalse()
        {
            //Test to ensure an empty value is recorded as not being a valid result
            var sut    = new Usrn();
            var actual = sut.IsValid();

            Assert.False(actual);
        }
Exemple #2
0
        public void ValidUsrnIsValid()
        {
            var input = new Usrn(123);

            var actual = input.IsValid();

            Assert.That(actual,
                        Is.True);
        }
Exemple #3
0
        public void InvalidStringIsValidFalse([Values("abc",
                                                      "def",
                                                      "!$%^")]
                                              string value)
        {
            var sut    = new Usrn(value);
            var actual = sut.IsValid();

            Assert.False(actual);
        }
        /// <inheritdoc />
        public bool ValidUsrn(long usrn)
        {
            var _usrn = new Usrn(usrn);

            return(_usrn.IsValid());
        }