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

            Assert.AreEqual(actual,
                            true);
        }
Exemple #2
0
        public void NonEmptyValueIsNotEmpty()
        {
            //Test to ensure that any passed value that isn't empty is recorded as not being empty
            const long value  = 12345;
            var        sut    = new Usrn(value);
            var        actual = sut.IsEmpty();

            Assert.AreEqual(actual,
                            false);
        }
Exemple #3
0
        public void InvalidStringIsEmpty([Values("abc",
                                                 "def",
                                                 "!$$%")]
                                         string value)
        {
            var sut    = new Usrn(value);
            var actual = sut.IsEmpty();

            Assert.True(actual);
        }