Пример #1
0
        //[Test]
        public void ShouldDetectAFalseEmail()
        {
            // Arrange
            string invalid_email = "johannes@cessor";

            // System under Test
            var emailValidator = new EmailValidatorTests();

            // Act
            bool isValid = emailValidator.IsValid(invalid_email);

            // Assert
            //Assert.That(isValid, Is.False)
        }
Пример #2
0
        //[Test]
        public void ShouldValidateAnEmail()
        {
            // Arrange
            string invalid_email = "*****@*****.**";

            // System under Test
            var emailValidator = new EmailValidatorTests();

            // Act
            bool isValid = emailValidator.IsValid(invalid_email);

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