//[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) }
//[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) }