예제 #1
0
        public void Email_IsInvalid_Empty()
        {
            string emailAddress = "";

            if (MailManager.IsEmailValid(emailAddress))
            {
                Assert.Fail();
            }
            Assert.Pass();
        }
예제 #2
0
        public void Email_IsInvalid_If_WithoutATSymbol()
        {
            string emailAddress = "hiljaclagmail.com";

            if (MailManager.IsEmailValid(emailAddress))
            {
                Assert.Fail();
            }
            Assert.Pass();
        }
예제 #3
0
        public void Email_IsInvalid_If_WithoutDomain()
        {
            string emailAddress = "hil.jacla@gmail";

            if (MailManager.IsEmailValid(emailAddress))
            {
                Assert.Fail();
            }
            Assert.Pass();
        }
예제 #4
0
        public void Email_IsValid()
        {
            string emailAddress = "*****@*****.**";

            if (MailManager.IsEmailValid(emailAddress))
            {
                Assert.Pass();
            }
            Assert.Fail();
        }