예제 #1
0
        public void TestValidUkString()
        {
            var result = new DomainValidator().Valid("cogworks.co.uk");

            Assert.IsTrue(result);
        }
예제 #2
0
        public void TestInvalidString()
        {
            var result = new DomainValidator().Valid("not a domain name");

            Assert.IsFalse(result);
        }
예제 #3
0
        public void TestValidMuseumString()
        {
            var result = new DomainValidator().Valid("example.museum");

            Assert.IsTrue(result);
        }
예제 #4
0
        public void TestEmptyString()
        {
            var result = new DomainValidator().Valid(string.Empty);

            Assert.IsFalse(result);
        }
예제 #5
0
        public void TestEmptyString()
        {
            var result = new DomainValidator().Valid(string.Empty);

            Assert.IsFalse(result);
        }
예제 #6
0
        public void TestValidMuseumString()
        {
            var result = new DomainValidator().Valid("example.museum");

            Assert.IsTrue(result);
        }
예제 #7
0
        public void TestValidUkString()
        {
            var result = new DomainValidator().Valid("cogworks.co.uk");

            Assert.IsTrue(result);
        }
예제 #8
0
        public void TestInvalidString()
        {
            var result = new DomainValidator().Valid("not a domain name");

            Assert.IsFalse(result);
        }