コード例 #1
0
ファイル: UPRNTests.cs プロジェクト: ellwoods/NLC.Library
        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);
        }
コード例 #2
0
ファイル: UPRNTests.cs プロジェクト: ellwoods/NLC.Library
        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);
        }
コード例 #3
0
ファイル: UPRNTests.cs プロジェクト: ellwoods/NLC.Library
        public void InvalidStringIsEmpty([Values("abc",
                                                 "def",
                                                 "!$$%")]
                                         string value)
        {
            var sut    = new Uprn(value);
            var actual = sut.IsEmpty();

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