Пример #1
0
        public void ShouldReturnFalseForEmailWithoutDomainExtenstionAddress()
        {
            var email = new EmailField("email", "");

            Assert.False(email.IsValid("yashar@gmail."));
        }
Пример #2
0
        public void ShouldReturnTrueForValidEmailAddress()
        {
            var email = new EmailField("email", "");

            Assert.True(email.IsValid("*****@*****.**"));
        }
Пример #3
0
        public void ShouldReturnFalseForInvalidEmailAddress()
        {
            var email = new EmailField("email", "");

            Assert.False(email.IsValid("123"));
        }