Example #1
0
        public void EmailCorrectFormat()
        {
            AccountValidate addr = new AccountValidate();
            var             r    = addr.IsValidEmail("*****@*****.**");

            Assert.IsTrue(r);
        }
Example #2
0
        public void EmailNull()
        {
            AccountValidate addr = new AccountValidate();
            var             r    = addr.IsValidEmail(null);

            Assert.IsFalse(r);
        }
Example #3
0
        public void EmailWrongFormat()
        {
            AccountValidate addr = new AccountValidate();
            var             r    = addr.IsValidEmail("user1.com");

            Assert.IsFalse(r);
        }
Example #4
0
        public void EmailBlank()
        {
            AccountValidate addr = new AccountValidate();
            var             r    = addr.IsValidEmail("");

            Assert.IsFalse(r);
        }