Пример #1
0
        //[Test]
        public void ShouldValidateAnEmail()
        {
            // Arrange
            string address = "*****@*****.**";

            // System under Test
            var emailValidator = new EmailAddress_(address);

            // Act
            bool isValid = emailValidator.IsValid;

            // Assert
            //Assert.That(isValid, Is.True)
        }
Пример #2
0
        //[Test]
        public void ShouldDetectAFalseEmail()
        {
            // Arrange
            string invalid_address = "johannes@cessor";

            // System under Test
            var emailValidator = new EmailAddress_(invalid_address);

            // Act
            bool isValid = emailValidator.IsValid;

            // Assert
            //Assert.That(isValid, Is.False)
        }