예제 #1
0
        public void EmptyValueIsDefault()
        {
            //Check to ensure that the default return value is null to reduce errors overall
            var sut    = new Uprn();
            var actual = sut.IsDefault();

            Assert.That(actual,
                        Is.True);
        }
예제 #2
0
        public void NullUprnValueIsDefault()
        {
            var u1     = new Uprn();
            var sut    = new Uprn(u1.NullUprnValue);
            var actual = sut.IsDefault();

            Assert.That(actual,
                        Is.True);
        }
예제 #3
0
        public void CorrectValueIsNotDefault()
        {
            //Test to see a correct value is no set as default (i.e. the default
            //is actually null
            long value  = 12345;
            var  sut    = new Uprn(value);
            var  actual = sut.IsDefault();

            Assert.That(actual,
                        Is.False);
        }
예제 #4
0
        public void InvalidStringIsDefault([Values("abc",
                                                   "def",
                                                   "!$%^")]
                                           string value)
        {
            var sut    = new Uprn(value);
            var actual = sut.IsDefault();

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