Beispiel #1
0
        public void EmptyValueIsEmpty()
        {
            //Test to ensure no other value is returned if nothing is passed
            var sut    = new Uprn();
            var actual = sut.IsEmpty();

            Assert.That(actual,
                        Is.True);
        }
Beispiel #2
0
        public void NonEmptyValueIsNotEmpty()
        {
            //Test to ensure that any passed value that isn't empty is recorded as not being empty
            var value  = 12345;
            var sut    = new Uprn(value);
            var actual = sut.IsEmpty();

            Assert.That(actual,
                        Is.False);
        }
Beispiel #3
0
        public void InvalidStringIsEmpty([Values("abc",
                                                 "def",
                                                 "!$$%")]
                                         string value)
        {
            var sut    = new Uprn(value);
            var actual = sut.IsEmpty();

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